code merged … ui updated
This commit is contained in:
parent
2274df4111
commit
6e6d441b26
|
@ -9,38 +9,14 @@
|
||||||
<li <%= ( i == 0 ) ? " class='active'" : '' %>><a data-toggle="tab" href=".<%= locale %>"><%= I18nVariable.from_locale(locale) %></a></li>
|
<li <%= ( i == 0 ) ? " class='active'" : '' %>><a data-toggle="tab" href=".<%= locale %>"><%= I18nVariable.from_locale(locale) %></a></li>
|
||||||
<% end %>
|
<% end %>
|
||||||
</ul>
|
</ul>
|
||||||
<form id="edit_album">
|
<form id="edit_album" action="update_album" method="post">
|
||||||
<div class="tab_content">
|
<div class="tab_content">
|
||||||
<% i = 0 %>
|
<% @site_valid_locales.each_with_index do |locale, i| %>
|
||||||
<% @site_valid_locales.each do |locale| %>
|
|
||||||
<% if i == 0 %>
|
<% if i == 0 %>
|
||||||
<div class="<%= locale %> fade tab-pane in active">
|
<div class="<%= locale %> fade tab-pane in active">
|
||||||
<% else %>
|
<% else %>
|
||||||
<div class="<%= locale %> fade tab-pane" >
|
<div class="<%= locale %> fade tab-pane" >
|
||||||
<% end %>
|
<% end %>
|
||||||
<% i = 1 %>
|
|
||||||
<div class="albumname_edit">
|
|
||||||
<label for=""><%= t("gallery.album_name") %></label>
|
|
||||||
<div class="inputui rginput rgih26 w380"><input type="text" name="edit_album[name][<%= locale %>]" value="<%= @album_name[locale] %>" class="txtchange" /></div>
|
|
||||||
</div>
|
|
||||||
<div class='description_loader'>
|
|
||||||
<% @images.each do |image| %>
|
|
||||||
<div class="rgphoto_edit">
|
|
||||||
<a href="orbit_gallery?theater=<%= image.id %>"><img src="<%= image.file.thumb.url %>"></a>
|
|
||||||
<div class="inputui rginput rgih98 w380">
|
|
||||||
<textarea name="edit[description][<%= locale %>]" class="txtchange" for="<%= image.id%>"><%= image.description_translations[locale] %></textarea>
|
|
||||||
</div>
|
|
||||||
<div class="edit_fn">
|
|
||||||
<% if image.id.to_s == @cover %>
|
|
||||||
<a class="btn btn-primary rgbtsg bt-cover setcover active" onclick="return false;" title="Cover" href="<%= image.id %>"><span class="icon-star icon-white"></span></a>
|
|
||||||
<% else %>
|
|
||||||
<a class="btn rgbtsg bt-cover" onclick="return false;" title="Set Cover" href="<%= image.id %>"><span class="icon-star-empty"></span></a>
|
|
||||||
<% end %>
|
|
||||||
<a class="btn rgbtsg bt-tag" onclick="return false;" title="Tags" href="<%= image.id %>"><span class="icon-tags"></span></a>
|
|
||||||
<a class="btn rgbtsg bt-dels" onclick="return false;" title="Delete" href="<%= image.id %>"><span class="icon-trash"></span></a>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<% end %>
|
|
||||||
|
|
||||||
<div class="albumname_edit">
|
<div class="albumname_edit">
|
||||||
<label for=""><%= t("gallery.album_name") %></label>
|
<label for=""><%= t("gallery.album_name") %></label>
|
||||||
|
@ -56,12 +32,12 @@
|
||||||
</div>
|
</div>
|
||||||
<div class="edit_fn">
|
<div class="edit_fn">
|
||||||
<% if image.id.to_s == @cover %>
|
<% if image.id.to_s == @cover %>
|
||||||
<a class="btn btn-primary rgbtsg bt-cover setcover active" onclick="return false;" title="<%= t("gallery.cover") %>" href="<%= image.id %>"><span class="icon-star icon-white"></span></a>
|
<a class="btn btn-primary rgbtsg bt-cover setcover active" onclick="return false;" title="Cover" href="<%= image.id %>"><span class="icon-star icon-white"></span></a>
|
||||||
<% else %>
|
<% else %>
|
||||||
<a class="btn rgbtsg bt-cover" onclick="return false;" title="<%= t("gallery.set_cover") %>" href="<%= image.id %>"><span class="icon-star-empty"></span></a>
|
<a class="btn rgbtsg bt-cover" onclick="return false;" title="Set Cover" href="<%= image.id %>"><span class="icon-star-empty"></span></a>
|
||||||
<% end %>
|
<% end %>
|
||||||
<a class="btn rgbtsg bt-tag" onclick="return false;" title="<%= t("gallery.photo_tag") %>" href="<%= image.id %>"><span class="icon-tags"></span></a>
|
<a class="btn rgbtsg bt-tag" onclick="return false;" title="Tags" href="<%= image.id %>"><span class="icon-tags"></span></a>
|
||||||
<a class="btn rgbtsg bt-dels" onclick="return false;" title="<%= t("gallery.delete") %>" href="<%= image.id %>"><span class="icon-trash"></span></a>
|
<a class="btn rgbtsg bt-dels" onclick="return false;" title="Delete" href="<%= image.id %>"><span class="icon-trash"></span></a>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<% end %>
|
<% end %>
|
||||||
|
|
Loading…
Reference in New Issue