MINOR Aligned the 'Add field' buttons and drop down

This commit is contained in:
Stig Lindqvist 2012-05-10 17:52:49 +12:00
parent bfb99a4f20
commit 89c7cf8a15
2 changed files with 15 additions and 15 deletions

View File

@ -10,7 +10,6 @@
border: 1px solid #ddd; border: 1px solid #ddd;
background: #f4f4f4; background: #f4f4f4;
overflow: hidden; overflow: hidden;
padding: 4px 0;
width: 100%; width: 100%;
} }
.MenuHolder h2 { .MenuHolder h2 {
@ -21,13 +20,13 @@
.MenuHolder select { .MenuHolder select {
float: left; float: left;
width: 240px; width: 240px;
margin: 7px 0 0 8px; margin: 18px 0 0 8px;
font-size: 11px; font-size: 11px;
} }
.MenuHolder .action { .MenuHolder .action {
float: left; float: left;
margin: 7px 0 0 4px; margin: 14px 0 0 4px;
font-size: 11px; font-size: 11px;
} }

View File

@ -10,20 +10,21 @@
<% end_control %> <% end_control %>
</ul> </ul>
</div> </div>
<% if canEdit %> <% if canEdit %>
<div class="MenuHolder"> <div class="MenuHolder">
<h2><% _t('ADD', 'Add') %></h2> <h2><% _t('ADD', 'Add') %></h2>
<select name="AddUserFormField" id="AddUserFormField">
<option value=""><% _t('SELECTAFIELD', 'Select a Field') %></option>
<% control CreatableFields %> <select name="AddUserFormField" id="AddUserFormField">
<option value="$ClassName">$Title</option> <option value=""><% _t('SELECTAFIELD', 'Select a Field') %></option>
<% end_control %>
</select>
<input type="submit" class="action" value="<% _t('ADD', 'Add') %>" /> <% control CreatableFields %>
</div> <option value="$ClassName">$Title</option>
<% end_control %>
</select>
<input type="submit" class="action" value="<% _t('ADD', 'Add') %>" />
</div>
<% end_if %> <% end_if %>
</div> </div>