61 lines
2.3 KiB
Plaintext
61 lines
2.3 KiB
Plaintext
<%= form_for @archive_feed, url: admin_archive_file_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="<%=f.object_name%>_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: (@archive_feed.title_translations[locale.to_s] rescue nil) %>
|
|
</div>
|
|
</div>
|
|
<% end %>
|
|
<% end %>
|
|
<hr />
|
|
<div class="tags">
|
|
<h4><%=t(:tags)%></h4>
|
|
<div id="tags-list">
|
|
<div class="tags-groups checkbox-card module-tags">
|
|
<% @module_app.tags.each do |tag| %>
|
|
<label class="filter-item module">
|
|
<p class="card pull-left">
|
|
<input type="checkbox" class="tag-checkbox" value="<%= tag.id.to_s %>" name="<%=f.object_name%>[tag_ids][]">
|
|
</p>
|
|
<div>
|
|
<% @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 %>
|
|
</div>
|
|
</label>
|
|
<% end %>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="categories">
|
|
<h4><%=t(:category)%></h4>
|
|
<div id="categories-list">
|
|
<div class="tags-groups checkbox-card module-categories">
|
|
<% @module_app.categories.each do |category| %>
|
|
<label class="filter-item module">
|
|
<p class="card pull-left">
|
|
<input type="checkbox" class="tag-checkbox" value="<%= category.id.to_s %>" name="<%=f.object_name%>[category_ids][]">
|
|
</p>
|
|
<div>
|
|
<% @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 %>
|
|
</div>
|
|
</label>
|
|
<% end %>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</fieldset>
|
|
<% end %>
|
|
|
|
|