image upload buttons layout

James Peret 10 gadi atpakaļ
vecāks
revīzija
ae45b103d6

+ 1 - 1
app/views/devise/registrations/edit.html.erb

@@ -43,7 +43,7 @@
43 43
 					    					<span class="btn btn-default btn-file btn-small" style="margin-top: 10px;">
44 44
 					    						<span class="fileinput-new"></span>
45 45
 					    						<span class="fileinput-exists"></span>
46
-					    						<%= f.file_field :avatar, class: 'hidden btn', label: (t 'blog.select_image') %>
46
+					    						<%= f.file_field :avatar, class: 'hidden', label: (t 'blog.select_image') %>
47 47
 					    					</span>
48 48
 					    			    </div>
49 49
 			    

+ 1 - 1
app/views/mission_editor/rewards/_form.html.erb

@@ -23,7 +23,7 @@
23 23
 											<%= content_tag(:span, '', class: 'fileinput-new') %>
24 24
 											<%= content_tag(:span, '', class: 'fileinput-exists') %>
25 25
 
26
-											<%= f.file_field :img, layout: :inline,  label: (t 'mission_editor.mission_details.select_image') %>
26
+											<%= f.file_field :img, class: 'hidden', layout: :inline,  label: (t 'mission_editor.mission_details.select_image') %>
27 27
 										<% end %>
28 28
 									<% end %>
29 29
 								<% end %>

+ 2 - 2
app/views/missions/_mission_image_uploader.html.erb

@@ -4,11 +4,11 @@
4 4
 		<%= content_tag(:div, class: 'fileupload-preview cover-fileupload-preview thumbnail', data: { trigger: 'fileinput' } ) do %>
5 5
 			<%= image_tag mission.cover_img.to_s if mission.cover_img? %>
6 6
 		<% end %>
7
-		<%= content_tag(:span, class: 'btn btn-default btn-file btn-mini pull-right', style: 'padding-top: 0px; padding-bottom: 0px;') do %>
7
+		<%= content_tag(:span, class: 'btn btn-default btn-file btn-small pull-right', style: 'padding-top: 0px; padding-bottom: 0px;') do %>
8 8
 			<%= content_tag(:span, '', class: 'fileinput-new') %>
9 9
 			<%= content_tag(:span, '', class: 'fileinput-exists') %>
10 10
 
11
-			<%= f.file_field :cover_img,  layout: :inline,  label: (t 'mission_editor.mission_details.select_image') %>
11
+			<%= f.file_field :cover_img, class: 'hidden',layout: :inline,  label: (t 'mission_editor.mission_details.select_image') %>
12 12
 		<% end %>
13 13
 	<% end %>
14 14
 <% end %>