38 lines
1.7 KiB
Plaintext
38 lines
1.7 KiB
Plaintext
|
<%= form_for @announcement_feed, url: admin_announcement_updatefeed_path(:id => @announcement_feed.id), html: {class: "form-horizontal main-forms"} do |f| %>
|
||
|
<fieldset>
|
||
|
<% @site_in_use_locales.each do |locale| %>
|
||
|
<%= f.fields_for :title_translations do |f| %>
|
||
|
<div class="control-group">
|
||
|
<label class="control-label muted" for="bulletin_feed_title_translations_<%= locale.to_s %>"><%= t(:title) + " (#{t(locale.to_s)})" %></label>
|
||
|
<div class="controls">
|
||
|
<%= f.text_field locale, data: {"fv-validation" => "required;","fv-messages" => "Cannot be empty.;"}, value: (@announcement_feed.title_translations[locale.to_s] rescue nil) %>
|
||
|
</div>
|
||
|
</div>
|
||
|
<% end %>
|
||
|
<% end %>
|
||
|
<hr />
|
||
|
<div class="tags">
|
||
|
<div id="tags-list">
|
||
|
<ul class="tags-groups checkbox-card module-tags">
|
||
|
<% @module_app.tags.each do |tag| %>
|
||
|
<li class="filter-item module">
|
||
|
<p class='card pull-left <%= @announcement_feed.tag_ids.include?(tag.id.to_s) ? "active" : "" %>'>
|
||
|
<input type="checkbox" <%= @announcement_feed.tag_ids.include?(tag.id.to_s) ? "checked=checked" : "" %> class="tag-checkbox" value="<%= tag.id.to_s %>" name="bulletin_feed[tag_ids][]">
|
||
|
</p>
|
||
|
<a href="#" onclick="return false;">
|
||
|
<% @site_in_use_locales.each_with_index do |locale,index| %>
|
||
|
<span class="tag"><%= tag.name_translations[locale] %></span>
|
||
|
<% if index < (@site_in_use_locales.count - 1) %>
|
||
|
/
|
||
|
<% end %>
|
||
|
<% end %>
|
||
|
</a>
|
||
|
</li>
|
||
|
<% end %>
|
||
|
</ul>
|
||
|
</div>
|
||
|
</div>
|
||
|
</fieldset>
|
||
|
<% end %>
|
||
|
|
||
|
|