Commit dd1402676c6367b1da5138eadb2e26d47ee94bee
Committed by
Fabio Teixeira
1 parent
6bc02adc
Exists in
master
and in
79 other branches
Hostname added before software name
-Added css file for software Signed-off-by: Gustavo Jaruga <darksshades@gmail.com>
Showing
2 changed files
with
30 additions
and
1 deletions
Show diff stats
... | ... | @@ -0,0 +1,23 @@ |
1 | + | |
2 | +#software-name-field | |
3 | +{ | |
4 | + padding-bottom: 10px; | |
5 | +} | |
6 | + | |
7 | +#software-hostname | |
8 | +{ | |
9 | + float: left; | |
10 | + display: inline-block; | |
11 | + vertical-align: middle; | |
12 | + | |
13 | + background: #EEE; | |
14 | + border: 1px solid #CFCFCF; | |
15 | + | |
16 | + line-height: 22px; | |
17 | + padding: 0px 7px; | |
18 | + color: #4A4A4A; | |
19 | + font-size: 20px; | |
20 | + text-transform: lowercase; | |
21 | + min-width: 190px; | |
22 | + border-spacing: 20px; | |
23 | +} | |
0 | 24 | \ No newline at end of file | ... | ... |
views/mpog_software_plugin_myprofile/new_software.html.erb
1 | 1 | <%= javascript_include_tag "mpog-validations" %> |
2 | +<%= stylesheet_link_tag('plugins/mpog_software/mpog-software') %> | |
2 | 3 | |
3 | 4 | <h1><%= _('Creating new software') %></h1> |
4 | 5 | |
... | ... | @@ -24,7 +25,12 @@ |
24 | 25 | |
25 | 26 | <%= required_fields_message %> |
26 | 27 | |
27 | - <%= required f.text_field(:name) %> | |
28 | + <%= label("name", _('Name'), {:class => 'formlabel'}) %> | |
29 | + | |
30 | + <div id='software-name-field' class='formfield'> | |
31 | + <span id='software-hostname'><%= environment.default_hostname %>/</span> | |
32 | + <%= required text_field(:community, :name) %> | |
33 | + </div> | |
28 | 34 | |
29 | 35 | <%= fields_for @software_info do |swf| %> |
30 | 36 | <div class="formfield type-text"> | ... | ... |