Skip to content

Commit

Permalink
Merge pull request #2754 from andreasstieger/patchinfo-labels
Browse files Browse the repository at this point in the history
[webui] In Edit Patchinfo dialog, add labels
  • Loading branch information
Moisés Déniz Alemán committed Mar 6, 2017
2 parents 539a26e + 969ac8a commit 2a8cc69
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions src/api/app/views/webui/patchinfo/_form.html.erb
Expand Up @@ -9,7 +9,7 @@
</div>
<div class="box show_left show_right">
<p>
<strong>Packager:</strong><br/>
<strong><label for="packager">Packager:</label></strong><br/>
<%= text_field_tag 'packager', @packager, required: true %>
<%= javascript_tag do %>
$("#packager").autocomplete({source: '<%= url_for :controller => 'user', :action => 'autocomplete' %>', minLength: 2});
Expand All @@ -18,26 +18,26 @@

<p>
<strong><%= image_tag('info.png', :title => 'Enter a short summary. Mainpackage: shortdescription of the mainfix', :alt => 'Summaryinfo') %>
Summary:</strong>
<label for="summary">Summary:</label></strong>

<%= text_area_tag 'summary', @summary, :size => '60x1', required: true, min: 10 %>
</p>

<p>
<strong><%= image_tag('info.png', :title => 'Enter a full description what the update fixes', :alt => 'Descriptioninfo') %>
Description: </strong>
<label for="description">Description:</label></strong>
<%= text_area_tag 'description', @description, :size => '65x9', required: true, min: 10 %>
</p>

<p>
<strong><%= image_tag('info.png', :title => 'Choose the category of your update', :alt => 'Categoryinfo') %>
Category:</strong>
<label for="category">Category:</label></strong>
<%= select_tag 'category', options_for_select(Patchinfo::CATEGORIES, @category) %>
</p>

<p>
<strong><%= image_tag('info.png', :title => 'Select the rating of this update', :alt => 'Ratinginfo') %>
Rating:</strong>
<label for="rating">Rating:</label></strong>
<%= select_tag 'rating', options_for_select(Patchinfo::RATINGS, @rating) %>
</p>
</div>
Expand Down Expand Up @@ -91,13 +91,13 @@
Required actions:</strong></p>

<p><%= check_box_tag('zypp_restart_needed', true, @zypp_restart_needed) %>
Package-manager restart suggested</p>
<label for="zypp_restart_needed">Package-manager restart suggested</label></p>

<p><%= check_box_tag('relogin', true, @relogin) %>
Relogin suggested</p>
<label for="relogin">Relogin suggested</label></p>

<p><%= check_box_tag('reboot', true, @reboot) %>
Reboot suggested</p>
<label for="reboot">Reboot suggested</label></p>
</div>
<div class="box show_left show_right">
<p>
Expand Down

0 comments on commit 2a8cc69

Please sign in to comment.