_hub.html.erb
1.87 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
<div class='hub'>
<h1><%= _("HUB Settings:") %></h1>
<%= required_fields_message %>
<div>
<%= required labelled_form_field(_('Title'), text_field(:article, 'name', :size => '64', :maxlength => 150)) %>
</div>
<div>
<%= required labelled_form_field(_('Description'), text_area(:article, 'body', :style => 'width: 99%;')) %>
</div>
<%= fields_for 'article[image_builder]', @article.image do |i| %>
<%= file_field_or_thumbnail(_('Image:'), @article.image, i) %>
<% end %>
<br />
<div>
<h2><%= _('Twitter Settings:') %></h2>
</div>
<%= check_box(:article, :twitter_enabled) %>
<span><%= _("Turn on TWITTER") %></span>
<span><%= labelled_form_field(_('Twitter\'s Hashtags, comma separated (example: participa.br,participabr)'), text_field(:article, :twitter_hashtags)) %></span>
<div>
<%= labelled_form_field(_('Twitter\'s consumer key'), text_field(:article, :twitter_consumer_key)) %>
</div>
<div>
<%= labelled_form_field(_('Twitter\'s consumer secret'), text_field(:article, :twitter_consumer_secret)) %>
</div>
<div>
<%= labelled_form_field(_('Twitter\'s access token'), text_field(:article, :twitter_access_token)) %>
</div>
<div>
<%= labelled_form_field(_('Twitter\'s access token secret'), text_field(:article, :twitter_access_token_secret)) %>
</div>
<br />
<div>
<h2><%= _('Facebook Settings:') %></h2>
</div>
<%= check_box(:article, :facebook_enabled) %>
<span><%= _("Turn on FACEBOOK") %></span>
<span><%= labelled_form_field(_('Facebook\'s hashtag (example: #participabr)'), text_field(:article, :facebook_hashtag)) %></span>
<span><%= labelled_form_field(_('Facebook\'s access token'), text_field(:article, :facebook_access_token)) %></span>
<br />
<a href='https://smashballoon.com/custom-facebook-feed/access-token/' ><%= _('How to get a new access token?') %><a>
<br />
</div>