2015-07-08 10:11:25 +00:00
|
|
|
<%= form_for @announcement_feed, url: admin_announcement_createfeed_path, 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">
|
2021-06-02 10:06:27 +00:00
|
|
|
<h4><%=t(:tags)%></h4>
|
2015-07-08 10:11:25 +00:00
|
|
|
<div id="tags-list">
|
2021-06-03 03:17:26 +00:00
|
|
|
<div class="tags-groups checkbox-card module-tags">
|
2015-07-08 10:11:25 +00:00
|
|
|
<% @module_app.tags.each do |tag| %>
|
2021-06-03 03:17:26 +00:00
|
|
|
<label class="filter-item module">
|
2015-07-08 10:11:25 +00:00
|
|
|
<p class="card pull-left">
|
|
|
|
<input type="checkbox" class="tag-checkbox" value="<%= tag.id.to_s %>" name="bulletin_feed[tag_ids][]">
|
|
|
|
</p>
|
2021-06-03 03:17:26 +00:00
|
|
|
<div>
|
2015-07-08 10:11:25 +00:00
|
|
|
<% @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 %>
|
2021-06-03 03:17:26 +00:00
|
|
|
</div>
|
|
|
|
</label>
|
2015-07-08 10:11:25 +00:00
|
|
|
<% end %>
|
2021-06-03 03:17:26 +00:00
|
|
|
</div>
|
2015-07-08 10:11:25 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
2021-06-02 10:06:27 +00:00
|
|
|
<div class="categories">
|
|
|
|
<h4><%=t(:category)%></h4>
|
|
|
|
<div id="categories-list">
|
2021-06-03 03:17:26 +00:00
|
|
|
<div class="tags-groups checkbox-card module-categories">
|
2021-06-02 10:06:27 +00:00
|
|
|
<% @module_app.categories.each do |category| %>
|
2021-06-03 03:17:26 +00:00
|
|
|
<label class="filter-item module">
|
2021-06-02 10:06:27 +00:00
|
|
|
<p class="card pull-left">
|
|
|
|
<input type="checkbox" class="tag-checkbox" value="<%= category.id.to_s %>" name="bulletin_feed[category_ids][]">
|
|
|
|
</p>
|
2021-06-03 03:17:26 +00:00
|
|
|
<div>
|
2021-06-02 10:06:27 +00:00
|
|
|
<% @site_in_use_locales.each_with_index do |locale,index| %>
|
|
|
|
<span class="tag"><%= category.title_translations[locale] %></span>
|
|
|
|
<% if index < (@site_in_use_locales.count - 1) %>
|
|
|
|
/
|
|
|
|
<% end %>
|
|
|
|
<% end %>
|
2021-06-03 03:17:26 +00:00
|
|
|
</div>
|
|
|
|
</label>
|
2021-06-02 10:06:27 +00:00
|
|
|
<% end %>
|
2021-06-03 03:17:26 +00:00
|
|
|
</div>
|
2021-06-02 10:06:27 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
2015-07-08 10:11:25 +00:00
|
|
|
</fieldset>
|
|
|
|
<% end %>
|
|
|
|
|
|
|
|
|