Commit 09975d55f279cb8446230b6237f1ee7108b9313b
Committed by
Fabio Teixeira
1 parent
323d07c4
Exists in
master
and in
5 other branches
Software editor page.
- remove unnecessary css - rename public_software_info to be a partial Signed-off-by: Gabriela Navarro <navarro1703@gmail.com> Signed-off-by: Parley Martins <parley@outlook.com>
Showing
6 changed files
with
304 additions
and
435 deletions
Show diff stats
public/mpog-software.css
... | ... | @@ -1,23 +0,0 @@ |
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 | -} | |
24 | 0 | \ No newline at end of file |
public/style.css
... | ... | @@ -126,4 +126,27 @@ |
126 | 126 | #profile-data .validated { |
127 | 127 | box-shadow: 0px 0px 7px green; |
128 | 128 | border-color: rgb(0, 80, 0) |
129 | -} | |
130 | 129 | \ No newline at end of file |
130 | +} | |
131 | + | |
132 | +#software-name-field | |
133 | +{ | |
134 | + padding-bottom: 10px; | |
135 | +} | |
136 | + | |
137 | +#software-hostname | |
138 | +{ | |
139 | + float: left; | |
140 | + display: inline-block; | |
141 | + vertical-align: middle; | |
142 | + | |
143 | + background: #EEE; | |
144 | + border: 1px solid #CFCFCF; | |
145 | + | |
146 | + line-height: 22px; | |
147 | + padding: 0px 7px; | |
148 | + color: #4A4A4A; | |
149 | + font-size: 20px; | |
150 | + text-transform: lowercase; | |
151 | + min-width: 190px; | |
152 | + border-spacing: 20px; | |
153 | +} | ... | ... |
... | ... | @@ -0,0 +1,28 @@ |
1 | +<h2><%= _('Software Information') %></h2> | |
2 | + | |
3 | +<%= label_tag("name", _('Name'), {:class => 'formlabel'}) %> | |
4 | + | |
5 | +<div id='software-name-field' class='formfield'> | |
6 | + <span id='software-hostname'><%= context.profile.environment.default_hostname %>/</span> | |
7 | + <%= text_field_tag(:name, context.profile.software_info.community.name) %> | |
8 | +</div> | |
9 | + | |
10 | +<h3> <%= _("Finality") %> </h3> | |
11 | +<div id="finality"> | |
12 | + <%= text_field_tag(:finality, context.profile.software_info.finality) %> | |
13 | +</div> | |
14 | + | |
15 | +<h3> <%= _("Licenses") %> </h3> | |
16 | +<div id='licenses'> | |
17 | + <%= select_tag(:version, options_for_select(LicenseHelper.getListLicenses.collect{|l| [l.version, l.id]}, :selected => context.profile.software_info.license_info.id), :onchange => "get_license_link('version')") %> | |
18 | + <br /> | |
19 | + | |
20 | + <h4> <%= _("License link") %> </h4> | |
21 | + <% LicenseHelper.getListLicenses.each do | license | %> | |
22 | + <input type="hidden" id = "version_<%=license.id %>" value = "<%=license.link%>"> | |
23 | + <% end %> | |
24 | + | |
25 | + <a id = "version_link" href="<%= context.profile.software_info.license_info.link %>" target="BLANK"> <%= context.profile.software_info.license_info.link %> </a> | |
26 | +</div> | |
27 | + | |
28 | + | ... | ... |
... | ... | @@ -0,0 +1,252 @@ |
1 | +<%= javascript_include_tag "mpog-validations" %> | |
2 | + | |
3 | +<h1><%= _('Edit software') %></h1> | |
4 | + | |
5 | +<% unless @errors.blank? %> | |
6 | +<div class="errorExplanation" id="errorExplanation"> | |
7 | + <h2> <%= _("Can`t edit software: #{@errors.length} errors") %> </h2> | |
8 | + <ul> | |
9 | + <% @errors.each do |error| %> | |
10 | + <li> <%= error %> </li> | |
11 | + <% end %> | |
12 | + </ul> | |
13 | +</div> | |
14 | +<% end %> | |
15 | + | |
16 | +<div> | |
17 | + <%= labelled_form_for :community, :html => { :multipart => true } do |f| %> | |
18 | + | |
19 | + <%= required_fields_message %> | |
20 | + | |
21 | + <%= required f.text_field(:name) %> | |
22 | + | |
23 | + <%= fields_for @software_info do |swf| %> | |
24 | + <div class="formfield type-text"> | |
25 | + <%= swf.label("acronym" ,_("Acronym"), :class=>"formlabel") %> | |
26 | + <%= swf.text_field(:acronym) %> | |
27 | + </div> | |
28 | + | |
29 | + <div class="formfieldline"> | |
30 | + <%= swf.label _("Adherent to e-PING ?") %> | |
31 | + | |
32 | + <%= swf.label "e_ping_true", "Yes" %> | |
33 | + <%= swf.radio_button(:e_ping,true)%> | |
34 | + <%= swf.label "e_ping_false", "No"%> | |
35 | + <%= swf.radio_button(:e_ping,false)%> | |
36 | + </div> | |
37 | + | |
38 | + <div class="formfieldline"> | |
39 | + <%= swf.label _("Adherent to e-MAG ?") %> | |
40 | + | |
41 | + <%= swf.label "e_mag_true", "Yes"%> | |
42 | + <%= swf.radio_button(:e_mag,true)%> | |
43 | + <%= swf.label "e_mag_false", "No"%> | |
44 | + <%= swf.radio_button(:e_mag,false)%> | |
45 | + </div> | |
46 | + | |
47 | + <div class="formfieldline"> | |
48 | + <%= swf.label _("Adherent to ICP-Brasil ?") %> | |
49 | + | |
50 | + <%= swf.label "icp_brasil_true", "Yes"%> | |
51 | + <%= swf.radio_button(:icp_brasil,true)%> | |
52 | + <%= swf.label "icp_brasil_false", "No"%> | |
53 | + <%= swf.radio_button(:icp_brasil,false)%> | |
54 | + </div> | |
55 | + | |
56 | + <div class="formfieldline"> | |
57 | + <%= swf.label _("Adherent to e-ARQ ?") %> | |
58 | + | |
59 | + <%= swf.label "e_arq_true", "Yes"%> | |
60 | + <%= swf.radio_button(:e_arq,true)%> | |
61 | + <%= swf.label "e_arq_false", "No"%> | |
62 | + <%= swf.radio_button(:e_arq,false)%> | |
63 | + </div> | |
64 | + | |
65 | + <div class="formfieldline"> | |
66 | + <%= swf.label _("Internacionalizable ?") %> | |
67 | + | |
68 | + <%= swf.label "intern_true", "Yes" %> | |
69 | + <%= swf.radio_button(:intern,true)%> | |
70 | + <%= swf.label "intern_false", "No"%> | |
71 | + <%= swf.radio_button(:intern,false)%> | |
72 | + <div class="formfieldline"> | |
73 | + <%= swf.label "operating_platform", _("Operating Platform: ") %> <br /> | |
74 | + <%= swf.text_area(:operating_platform, :class=>"expand-field") %> | |
75 | + </div> | |
76 | + | |
77 | + <div class="formfieldline"> | |
78 | + <%= swf.label "objectives", _("Objectives: ")%><br /> | |
79 | + <%= required swf.text_area(:objectives, :class=>"expand-field") %> | |
80 | + </div> | |
81 | + | |
82 | + <div class="formfieldline"> | |
83 | + <%= swf.label "features", _("Features: ")%><br /> | |
84 | + <%= required swf.text_area(:features, :class=>"expand-field") %> | |
85 | + </div> | |
86 | + | |
87 | + <div class="formfieldline formfield type-text"> | |
88 | + <%= swf.label "demonstration_url", _("Demonstration URL: ") %> | |
89 | + <%= swf.text_field(:demonstration_url) %> | |
90 | + </div> | |
91 | + <% end %> | |
92 | + | |
93 | + <div class="formfieldline"> | |
94 | + <%= content_tag('label', _('Fill in the search field to add offerers for this Software'), :id => "text-input-search-offerers") %> | |
95 | + <%= token_input_field_tag(:q, 'search-offerers', {:action => 'search_offerers'}, { :focus => true, :hint_text => _('Type in a search term for a person to be added as | |
96 | +offerers'), :pre_populate => @tokenized_children}) %> | |
97 | + </div> | |
98 | + | |
99 | + <div id='libraries_fields'> | |
100 | + <h4> <%= _("Libraries") %> </h4> | |
101 | + <%= render :partial => 'library_fields', :locals => { :f => f, :object_name => 'community', :profile => @community, :libraries => @list_libraries } %> | |
102 | + </div> | |
103 | + <br /> | |
104 | + | |
105 | + <div id='operating_system_fields'> | |
106 | + <h4> <%= _("Operating Systems") %> </h4> | |
107 | + <% if @list_operating_systems.blank? %> | |
108 | + <%= OperatingSystemHelper.operating_system_as_tables(nil, false).call %> | |
109 | + <% end %> | |
110 | + <%= render :partial => 'operating_system_fields', :locals => { :f => f, :object_name => 'community', :profile => @community, :operating_systems_fields => @list_operating_systems} %> | |
111 | + </div> | |
112 | + <br /> | |
113 | + | |
114 | + <%= fields_for @license_info do |lcv| %> | |
115 | + <div class="formfieldline"> | |
116 | + <h4> <%= lcv.label _("License Version: ") %> </h4> | |
117 | + <%= lcv.select(:version, LicenseInfo.all.map {|l| [l.version, l.version]}, {:selected=>1}, :onchange => "get_license_link('license_info_version')") %> | |
118 | + | |
119 | + <h4> <%= _("License link") %> </h4> | |
120 | + <% LicenseHelper.getListLicenses.each do | license | %> | |
121 | + <input type="hidden" id = "version_<%=license.id %>" value = "<%=license.link%>"> | |
122 | + <% end %> | |
123 | + <a id = "version_link" href="<%= LicenseInfo.first.link %>" target="_BLANK"> <%=LicenseInfo.first.link %> </a> | |
124 | + | |
125 | + </div> | |
126 | + <% end %> | |
127 | + | |
128 | + <br /> | |
129 | + <div id='programming_languages_fields'> | |
130 | + <h4> <%= _("Programming languages") %> </h4> | |
131 | + <% if @list_languages.blank? %> | |
132 | + <%= SoftwareLanguageHelper.language_as_tables(nil, false).call %> | |
133 | + <% end %> | |
134 | + | |
135 | + <%= render :partial => 'language_fields', :locals => { :f => f, :object_name => 'community', :profile => @community, :languages => @list_languages } %> | |
136 | + </div> | |
137 | + | |
138 | + <br /> | |
139 | + <div id='database_fields'> | |
140 | + <h4> <%= _("Databases") %> </h4> | |
141 | + <% if @list_databases.blank? %> | |
142 | + <%= DatabaseHelper.database_as_tables(nil, true).call %> | |
143 | + <% end %> | |
144 | + | |
145 | + <%= render :partial => 'database_fields', :locals => { :f => f, :object_name => 'community', :profile => @community, :database => @list_databases } %> | |
146 | + </div> | |
147 | + | |
148 | + <%= fields_for @software_categories do |cv| %> | |
149 | + <div id="software_categories_fields"> | |
150 | + <h4> <%= _("Software Categories:") %> </h4> | |
151 | + | |
152 | + <%= cv.check_box :administration %> | |
153 | + <%= cv.label :administration, _("Administration") %><br /> | |
154 | + | |
155 | + <%= cv.check_box :agriculture %> | |
156 | + <%= cv.label :agriculture, _("Agriculture") %><br /> | |
157 | + | |
158 | + <%= cv.check_box :business_and_services %> | |
159 | + <%= cv.label :business_and_services, _("Business_and Services") %><br /> | |
160 | + | |
161 | + <%= cv.check_box :communication %> | |
162 | + <%= cv.label :communication, _("Communication") %><br /> | |
163 | + | |
164 | + <%= cv.check_box :culture %> | |
165 | + <%= cv.label :culture, _("Culture") %><br /> | |
166 | + | |
167 | + <%= cv.check_box :national_defense %> | |
168 | + <%= cv.label :national_defense, _("National Defense") %><br /> | |
169 | + | |
170 | + <%= cv.check_box :economy_and_finances %> | |
171 | + <%= cv.label :economy_and_finances, _("Economy and Finances") %><br /> | |
172 | + | |
173 | + <%= cv.check_box :education %> | |
174 | + <%= cv.label :education, _("Education") %><br /> | |
175 | + | |
176 | + <%= cv.check_box :energy %> | |
177 | + <%= cv.label :energy, _("Energy") %><br /> | |
178 | + | |
179 | + <%= cv.check_box :sports %> | |
180 | + <%= cv.label :sports, _("Sports") %><br /> | |
181 | + | |
182 | + <%= cv.check_box :habitation %> | |
183 | + <%= cv.label :habitation, _("Habitation") %><br /> | |
184 | + | |
185 | + <%= cv.check_box :industry %> | |
186 | + <%= cv.label :industry, _("Industry") %><br /> | |
187 | + | |
188 | + <%= cv.check_box :environment %> | |
189 | + <%= cv.label :environment, _("Environment") %><br /> | |
190 | + | |
191 | + <%= cv.check_box :research_and_development %> | |
192 | + <%= cv.label :research_and_development, _("Research and Development") %><br /> | |
193 | + | |
194 | + <%= cv.check_box :social_security %> | |
195 | + <%= cv.label :social_security, _("Social Security") %><br /> | |
196 | + | |
197 | + <%= cv.check_box :social_protection %> | |
198 | + <%= cv.label :social_protection, _("Social Protection") %><br /> | |
199 | + | |
200 | + <%= cv.check_box :sanitation %> | |
201 | + <%= cv.label :sanitation, _("Sanitation") %><br /> | |
202 | + | |
203 | + <%= cv.check_box :health %> | |
204 | + <%= cv.label :health, _("Health") %><br /> | |
205 | + | |
206 | + <%= cv.check_box :security_public_order %> | |
207 | + <%= cv.label :security_public_order, _("Security and Public Order") %><br /> | |
208 | + | |
209 | + <%= cv.check_box :work %> | |
210 | + <%= cv.label :work, _("Work") %><br /> | |
211 | + | |
212 | + <%= cv.check_box :transportation %> | |
213 | + <%= cv.label :transportation, _("Transportation") %><br /> | |
214 | + | |
215 | + <%= cv.check_box :urbanism %> | |
216 | + <%= cv.label :urbanism, _("Urbanism") %><br /> | |
217 | + </div> | |
218 | + <% end %> | |
219 | + <%= render :partial => 'shared/organization_custom_fields', :locals => { :f => f, :object_name => 'community', :profile => @community } %> | |
220 | + | |
221 | + <%= f.fields_for :image_builder, @community.image do |i| %> | |
222 | + <%= file_field_or_thumbnail(_('Image:'), @community.image, i) %> | |
223 | + <% end %> | |
224 | + | |
225 | + <div style='margin-bottom: 1em; margin-top: 1em;'> | |
226 | + <%= _('New members must be approved:')%> | |
227 | + </div> | |
228 | + <div style='margin-bottom: 0.5em' id='community-join-before'> | |
229 | + <%= radio_button 'community', 'closed', 'true', :style => 'float: left' %> | |
230 | + <div style='margin-left: 30px'> | |
231 | + <%= _('<strong>Before</strong> joining this group (a moderator has to accept the member in pending request before member can access the intranet and/or the website).') %> | |
232 | + </div> | |
233 | + </div> | |
234 | + <div id='community-join-after'> | |
235 | + <%= radio_button 'community', 'closed', 'false', :style => 'float: left' %> | |
236 | + <div style='margin-left: 30px'> | |
237 | + <%= _('<strong>After</strong> joining this group (a moderator can always desactivate access for users later).') %> | |
238 | + </div> | |
239 | + </div> | |
240 | + | |
241 | + <%= template_options(:communities, 'community')%> | |
242 | + | |
243 | + <%= hidden_field_tag('back_to', @back_to) %> | |
244 | + | |
245 | + <% button_bar do %> | |
246 | + <%= submit_button(:save, _('Create')) %> | |
247 | + <%= button(:cancel, _('Cancel'), @back_to ) %> | |
248 | + <% end %> | |
249 | + | |
250 | + <% end %> | |
251 | + | |
252 | +</div> | ... | ... |
views/mpog_software_plugin_myprofile/public_software_info.html.erb
... | ... | @@ -1,258 +0,0 @@ |
1 | -<%= javascript_include_tag "mpog-validations" %> | |
2 | - | |
3 | -<h1><%= _('Creating new software') %></h1> | |
4 | - | |
5 | -<% if environment.enabled?('admin_must_approve_new_communities') %> | |
6 | - <div class='explanation'> | |
7 | - <%= _("Note that the creation of communities in this environment is restricted. Your request to create this new community will be sent to %{environment} administrators and will be approved or rejected according to their methods and criteria.") % { :environment => environment.name }%> | |
8 | - </div> | |
9 | -<%end %> | |
10 | - | |
11 | -<% unless @errors.blank? %> | |
12 | -<div class="errorExplanation" id="errorExplanation"> | |
13 | - <h2> <%= _("Can`t create new software: #{@errors.length} errors") %> </h2> | |
14 | - <ul> | |
15 | - <% @errors.each do |error| %> | |
16 | - <li> <%= error %> </li> | |
17 | - <% end %> | |
18 | - </ul> | |
19 | -</div> | |
20 | -<% end %> | |
21 | - | |
22 | -<div> | |
23 | - <%= labelled_form_for :community, :html => { :multipart => true } do |f| %> | |
24 | - | |
25 | - <%= required_fields_message %> | |
26 | - | |
27 | - <%= required f.text_field(:name) %> | |
28 | - | |
29 | - <%= fields_for @software_info do |swf| %> | |
30 | - <div class="formfield type-text"> | |
31 | - <%= swf.label("acronym" ,_("Acronym"), :class=>"formlabel") %> | |
32 | - <%= swf.text_field(:acronym) %> | |
33 | - </div> | |
34 | - | |
35 | - <div class="formfieldline"> | |
36 | - <%= swf.label _("Adherent to e-PING ?") %> | |
37 | - | |
38 | - <%= swf.label "e_ping_true", "Yes" %> | |
39 | - <%= swf.radio_button(:e_ping,true)%> | |
40 | - <%= swf.label "e_ping_false", "No"%> | |
41 | - <%= swf.radio_button(:e_ping,false)%> | |
42 | - </div> | |
43 | - | |
44 | - <div class="formfieldline"> | |
45 | - <%= swf.label _("Adherent to e-MAG ?") %> | |
46 | - | |
47 | - <%= swf.label "e_mag_true", "Yes"%> | |
48 | - <%= swf.radio_button(:e_mag,true)%> | |
49 | - <%= swf.label "e_mag_false", "No"%> | |
50 | - <%= swf.radio_button(:e_mag,false)%> | |
51 | - </div> | |
52 | - | |
53 | - <div class="formfieldline"> | |
54 | - <%= swf.label _("Adherent to ICP-Brasil ?") %> | |
55 | - | |
56 | - <%= swf.label "icp_brasil_true", "Yes"%> | |
57 | - <%= swf.radio_button(:icp_brasil,true)%> | |
58 | - <%= swf.label "icp_brasil_false", "No"%> | |
59 | - <%= swf.radio_button(:icp_brasil,false)%> | |
60 | - </div> | |
61 | - | |
62 | - <div class="formfieldline"> | |
63 | - <%= swf.label _("Adherent to e-ARQ ?") %> | |
64 | - | |
65 | - <%= swf.label "e_arq_true", "Yes"%> | |
66 | - <%= swf.radio_button(:e_arq,true)%> | |
67 | - <%= swf.label "e_arq_false", "No"%> | |
68 | - <%= swf.radio_button(:e_arq,false)%> | |
69 | - </div> | |
70 | - | |
71 | - <div class="formfieldline"> | |
72 | - <%= swf.label _("Internacionalizable ?") %> | |
73 | - | |
74 | - <%= swf.label "intern_true", "Yes" %> | |
75 | - <%= swf.radio_button(:intern,true)%> | |
76 | - <%= swf.label "intern_false", "No"%> | |
77 | - <%= swf.radio_button(:intern,false)%> | |
78 | - <div class="formfieldline"> | |
79 | - <%= swf.label "operating_platform", _("Operating Platform: ") %> <br /> | |
80 | - <%= swf.text_area(:operating_platform, :class=>"expand-field") %> | |
81 | - </div> | |
82 | - | |
83 | - <div class="formfieldline"> | |
84 | - <%= swf.label "objectives", _("Objectives: ")%><br /> | |
85 | - <%= required swf.text_area(:objectives, :class=>"expand-field") %> | |
86 | - </div> | |
87 | - | |
88 | - <div class="formfieldline"> | |
89 | - <%= swf.label "features", _("Features: ")%><br /> | |
90 | - <%= required swf.text_area(:features, :class=>"expand-field") %> | |
91 | - </div> | |
92 | - | |
93 | - <div class="formfieldline formfield type-text"> | |
94 | - <%= swf.label "demonstration_url", _("Demonstration URL: ") %> | |
95 | - <%= swf.text_field(:demonstration_url) %> | |
96 | - </div> | |
97 | - <% end %> | |
98 | - | |
99 | - <div class="formfieldline"> | |
100 | - <%= content_tag('label', _('Fill in the search field to add offerers for this Software'), :id => "text-input-search-offerers") %> | |
101 | - <%= token_input_field_tag(:q, 'search-offerers', {:action => 'search_offerers'}, { :focus => true, :hint_text => _('Type in a search term for a person to be added as | |
102 | -offerers'), :pre_populate => @tokenized_children}) %> | |
103 | - </div> | |
104 | - | |
105 | - <div id='libraries_fields'> | |
106 | - <h4> <%= _("Libraries") %> </h4> | |
107 | - <%= render :partial => 'library_fields', :locals => { :f => f, :object_name => 'community', :profile => @community, :libraries => @list_libraries } %> | |
108 | - </div> | |
109 | - <br /> | |
110 | - | |
111 | - <div id='operating_system_fields'> | |
112 | - <h4> <%= _("Operating Systems") %> </h4> | |
113 | - <% if @list_operating_systems.blank? %> | |
114 | - <%= OperatingSystemHelper.operating_system_as_tables(nil, false).call %> | |
115 | - <% end %> | |
116 | - <%= render :partial => 'operating_system_fields', :locals => { :f => f, :object_name => 'community', :profile => @community, :operating_systems_fields => @list_operating_systems} %> | |
117 | - </div> | |
118 | - <br /> | |
119 | - | |
120 | - <%= fields_for @license_info do |lcv| %> | |
121 | - <div class="formfieldline"> | |
122 | - <h4> <%= lcv.label _("License Version: ") %> </h4> | |
123 | - <%= lcv.select(:version, LicenseInfo.all.map {|l| [l.version, l.version]}, {:selected=>1}, :onchange => "get_license_link('license_info_version')") %> | |
124 | - | |
125 | - <h4> <%= _("License link") %> </h4> | |
126 | - <% LicenseHelper.getListLicenses.each do | license | %> | |
127 | - <input type="hidden" id = "version_<%=license.id %>" value = "<%=license.link%>"> | |
128 | - <% end %> | |
129 | - <a id = "version_link" href="<%= LicenseInfo.first.link %>" target="_BLANK"> <%=LicenseInfo.first.link %> </a> | |
130 | - | |
131 | - </div> | |
132 | - <% end %> | |
133 | - | |
134 | - <br /> | |
135 | - <div id='programming_languages_fields'> | |
136 | - <h4> <%= _("Programming languages") %> </h4> | |
137 | - <% if @list_languages.blank? %> | |
138 | - <%= SoftwareLanguageHelper.language_as_tables(nil, false).call %> | |
139 | - <% end %> | |
140 | - | |
141 | - <%= render :partial => 'language_fields', :locals => { :f => f, :object_name => 'community', :profile => @community, :languages => @list_languages } %> | |
142 | - </div> | |
143 | - | |
144 | - <br /> | |
145 | - <div id='database_fields'> | |
146 | - <h4> <%= _("Databases") %> </h4> | |
147 | - <% if @list_databases.blank? %> | |
148 | - <%= DatabaseHelper.database_as_tables(nil, true).call %> | |
149 | - <% end %> | |
150 | - | |
151 | - <%= render :partial => 'database_fields', :locals => { :f => f, :object_name => 'community', :profile => @community, :database => @list_databases } %> | |
152 | - </div> | |
153 | - | |
154 | - <%= fields_for @software_categories do |cv| %> | |
155 | - <div id="software_categories_fields"> | |
156 | - <h4> <%= _("Software Categories:") %> </h4> | |
157 | - | |
158 | - <%= cv.check_box :administration %> | |
159 | - <%= cv.label :administration, _("Administration") %><br /> | |
160 | - | |
161 | - <%= cv.check_box :agriculture %> | |
162 | - <%= cv.label :agriculture, _("Agriculture") %><br /> | |
163 | - | |
164 | - <%= cv.check_box :business_and_services %> | |
165 | - <%= cv.label :business_and_services, _("Business_and Services") %><br /> | |
166 | - | |
167 | - <%= cv.check_box :communication %> | |
168 | - <%= cv.label :communication, _("Communication") %><br /> | |
169 | - | |
170 | - <%= cv.check_box :culture %> | |
171 | - <%= cv.label :culture, _("Culture") %><br /> | |
172 | - | |
173 | - <%= cv.check_box :national_defense %> | |
174 | - <%= cv.label :national_defense, _("National Defense") %><br /> | |
175 | - | |
176 | - <%= cv.check_box :economy_and_finances %> | |
177 | - <%= cv.label :economy_and_finances, _("Economy and Finances") %><br /> | |
178 | - | |
179 | - <%= cv.check_box :education %> | |
180 | - <%= cv.label :education, _("Education") %><br /> | |
181 | - | |
182 | - <%= cv.check_box :energy %> | |
183 | - <%= cv.label :energy, _("Energy") %><br /> | |
184 | - | |
185 | - <%= cv.check_box :sports %> | |
186 | - <%= cv.label :sports, _("Sports") %><br /> | |
187 | - | |
188 | - <%= cv.check_box :habitation %> | |
189 | - <%= cv.label :habitation, _("Habitation") %><br /> | |
190 | - | |
191 | - <%= cv.check_box :industry %> | |
192 | - <%= cv.label :industry, _("Industry") %><br /> | |
193 | - | |
194 | - <%= cv.check_box :environment %> | |
195 | - <%= cv.label :environment, _("Environment") %><br /> | |
196 | - | |
197 | - <%= cv.check_box :research_and_development %> | |
198 | - <%= cv.label :research_and_development, _("Research and Development") %><br /> | |
199 | - | |
200 | - <%= cv.check_box :social_security %> | |
201 | - <%= cv.label :social_security, _("Social Security") %><br /> | |
202 | - | |
203 | - <%= cv.check_box :social_protection %> | |
204 | - <%= cv.label :social_protection, _("Social Protection") %><br /> | |
205 | - | |
206 | - <%= cv.check_box :sanitation %> | |
207 | - <%= cv.label :sanitation, _("Sanitation") %><br /> | |
208 | - | |
209 | - <%= cv.check_box :health %> | |
210 | - <%= cv.label :health, _("Health") %><br /> | |
211 | - | |
212 | - <%= cv.check_box :security_public_order %> | |
213 | - <%= cv.label :security_public_order, _("Security and Public Order") %><br /> | |
214 | - | |
215 | - <%= cv.check_box :work %> | |
216 | - <%= cv.label :work, _("Work") %><br /> | |
217 | - | |
218 | - <%= cv.check_box :transportation %> | |
219 | - <%= cv.label :transportation, _("Transportation") %><br /> | |
220 | - | |
221 | - <%= cv.check_box :urbanism %> | |
222 | - <%= cv.label :urbanism, _("Urbanism") %><br /> | |
223 | - </div> | |
224 | - <% end %> | |
225 | - <%= render :partial => 'shared/organization_custom_fields', :locals => { :f => f, :object_name => 'community', :profile => @community } %> | |
226 | - | |
227 | - <%= f.fields_for :image_builder, @community.image do |i| %> | |
228 | - <%= file_field_or_thumbnail(_('Image:'), @community.image, i) %> | |
229 | - <% end %> | |
230 | - | |
231 | - <div style='margin-bottom: 1em; margin-top: 1em;'> | |
232 | - <%= _('New members must be approved:')%> | |
233 | - </div> | |
234 | - <div style='margin-bottom: 0.5em' id='community-join-before'> | |
235 | - <%= radio_button 'community', 'closed', 'true', :style => 'float: left' %> | |
236 | - <div style='margin-left: 30px'> | |
237 | - <%= _('<strong>Before</strong> joining this group (a moderator has to accept the member in pending request before member can access the intranet and/or the website).') %> | |
238 | - </div> | |
239 | - </div> | |
240 | - <div id='community-join-after'> | |
241 | - <%= radio_button 'community', 'closed', 'false', :style => 'float: left' %> | |
242 | - <div style='margin-left: 30px'> | |
243 | - <%= _('<strong>After</strong> joining this group (a moderator can always desactivate access for users later).') %> | |
244 | - </div> | |
245 | - </div> | |
246 | - | |
247 | - <%= template_options(:communities, 'community')%> | |
248 | - | |
249 | - <%= hidden_field_tag('back_to', @back_to) %> | |
250 | - | |
251 | - <% button_bar do %> | |
252 | - <%= submit_button(:save, _('Create')) %> | |
253 | - <%= button(:cancel, _('Cancel'), @back_to ) %> | |
254 | - <% end %> | |
255 | - | |
256 | - <% end %> | |
257 | - | |
258 | -</div> |
views/software_editor_extras.html.erb
... | ... | @@ -1,153 +0,0 @@ |
1 | -<h2><%= _('Software Information') %></h2> | |
2 | - | |
3 | -<div class="formfieldline formfield type-text"> | |
4 | - <%= labelled_text_field(_("Acronym"), 'software_info[acronym]', context.profile.software_info.acronym) %> | |
5 | -</div> | |
6 | - | |
7 | -<div class="formfieldline"> | |
8 | - <%= _("Adherent to e-PING?") %> | |
9 | - <%= labelled_radio_button(_('Yes'), 'software_info[e_ping]', 'true', context.profile.software_info.e_ping)%> | |
10 | - <%= labelled_radio_button(_('No'), 'software_info[e_ping]', 'false', !context.profile.software_info.e_ping)%> | |
11 | -</div> | |
12 | -<div class="formfieldline"> | |
13 | - <%= _("Adherent to e-MAG?") %> | |
14 | - <%= labelled_radio_button(_('Yes'), 'software_info[e_mag]', 'true', context.profile.software_info.e_mag)%> | |
15 | - <%= labelled_radio_button(_('No'), 'software_info[e_mag]', 'false', !context.profile.software_info.e_mag)%> | |
16 | -</div> | |
17 | -<div class="formfieldline"> | |
18 | - <%= _("Adherent to ICP-Brasil?") %> | |
19 | - <%= labelled_radio_button(_('Yes'), 'software_info[icp_brasil]', 'true', context.profile.software_info.icp_brasil)%> | |
20 | - <%= labelled_radio_button(_('No'), 'software_info[icp_brasil]', 'false', !context.profile.software_info.icp_brasil)%> | |
21 | -</div> | |
22 | -<div class="formfieldline"> | |
23 | - <%= _("Adherent to e-ARQ?") %> | |
24 | - <%= labelled_radio_button(_('Yes'), 'software_info[e_arq]', 'true', context.profile.software_info.e_arq)%> | |
25 | - <%= labelled_radio_button(_('No'), 'software_info[e_arq]', 'false', !context.profile.software_info.e_arq)%> | |
26 | -</div> | |
27 | -<div class="formfieldline"> | |
28 | - <%= _("Internacionalizable") %> | |
29 | - <%= labelled_radio_button(_('Yes'), 'software_info[intern]', 'true', context.profile.software_info.intern)%> | |
30 | - <%= labelled_radio_button(_('No'), 'software_info[intern]', 'false', !context.profile.software_info.intern)%> | |
31 | -</div> | |
32 | - | |
33 | -<div class="formfieldline"> | |
34 | - <%= label_tag('software_info[operating_platform]', 'Operating Platform:') %> | |
35 | - <br /> | |
36 | - <%= text_area_tag('software_info[operating_platform]', context.profile.software_info.operating_platform, :size => '40x20', :class=>"expand-field") %> | |
37 | -</div> | |
38 | - | |
39 | -<div class="formfieldline"> | |
40 | - <%= label_tag('software_info[objectives]', 'Objectives:') %> | |
41 | - <br /> | |
42 | - <%= text_area_tag('software_info[objectives]', context.profile.software_info.objectives, :size => '40x20', :class=>"expand-field") %> | |
43 | -</div> | |
44 | - | |
45 | -<div class="formfieldline"> | |
46 | - <%= label_tag('software_info[features]', 'Features:') %> | |
47 | - <br /> | |
48 | - <%= text_area_tag('software_info[features]', context.profile.software_info.features, :size => '40x20', :class=>"expand-field") %> | |
49 | -</div> | |
50 | - | |
51 | -<div class="formfieldline formfield type-text"> | |
52 | - <%= labelled_text_field('Demonstration URL', 'software_info[demonstration_url]', context.profile.software_info.demonstration_url) %> | |
53 | -</div> | |
54 | - | |
55 | -<h3> <%= _("Licenses") %> </h3> | |
56 | -<div id='licenses'> | |
57 | - <%= select_tag(:version, options_for_select(LicenseHelper.getListLicenses.collect{|l| [l.version, l.id]}, :selected => context.profile.software_info.license_info.id), :onchange => "get_license_link('version')") %> | |
58 | - <br /> | |
59 | - | |
60 | - <h4> <%= _("License link") %> </h4> | |
61 | - <% LicenseHelper.getListLicenses.each do | license | %> | |
62 | - <input type="hidden" id = "version_<%=license.id %>" value = "<%=license.link%>"> | |
63 | - <% end %> | |
64 | - | |
65 | - <a id = "version_link" href="<%= context.profile.software_info.license_info.link %>" target="BLANK"> <%= context.profile.software_info.license_info.link %> </a> | |
66 | -</div> | |
67 | - | |
68 | -<h3> <%= _("Libraries") %> </h3> | |
69 | -<div id='libraries'> | |
70 | - <% LibraryHelper.library_as_tables(context.profile.software_info.libraries).each do |tab| %> | |
71 | - <%= tab.call %> | |
72 | - <%end%> | |
73 | -</div> | |
74 | - | |
75 | -<div id='table_structure_libraries' style="display:none"><%= LibraryHelper.add_dynamic_table %></div> | |
76 | -<%= link_to _('New Library'), "#", :class=>"button icon-add with-text new-dynamic-table dynamic-libraries"%> | |
77 | - | |
78 | -<h3> <%= _("Programming Languages") %> </h3> | |
79 | -<div id='languages'> | |
80 | - <% SoftwareLanguageHelper.language_as_tables(context.profile.software_info.software_languages).each do |tab| %> | |
81 | - <%= tab.call %> | |
82 | - <%end%> | |
83 | -</div> | |
84 | - | |
85 | -<div id='table_structure_languages' style="display:none"><%= SoftwareLanguageHelper.add_dynamic_table %></div> | |
86 | -<%= link_to _('New language'), "#", :class=>"button icon-add with-text new-dynamic-table dynamic-languages"%> | |
87 | - | |
88 | -<h3> <%= _("Databases") %> </h3> | |
89 | -<div id='databases'> | |
90 | - <% DatabaseHelper.database_as_tables(context.profile.software_info.software_databases).each do |tab| %> | |
91 | - <%= tab.call %> | |
92 | - <%end%> | |
93 | -</div> | |
94 | - | |
95 | -<div id='table_structure_databases' style="display:none"><%= DatabaseHelper.add_dynamic_table %></div> | |
96 | -<%= link_to _('New Database'), "#", :class=>"button icon-add with-text new-dynamic-table dynamic-databases"%> | |
97 | - | |
98 | -<div id="software_categories_fields"> | |
99 | -<h4> <%= _("Software Categories") %> </h4> | |
100 | - | |
101 | - <%= labelled_check_box _("Administration"), "software_categories[administration]", "1", context.profile.software_info.software_categories.administration %> <br /> | |
102 | - | |
103 | - <%= labelled_check_box _("Agriculture"), "software_categories[agriculture]", "1", context.profile.software_info.software_categories.agriculture %> <br /> | |
104 | - | |
105 | - <%= labelled_check_box _("Business_and Services"), "software_categories[business_and_services]", "1", context.profile.software_info.software_categories.business_and_services %> <br /> | |
106 | - | |
107 | - <%= labelled_check_box _("Communication"), "software_categories[communication]", "1", context.profile.software_info.software_categories.communication %> <br /> | |
108 | - | |
109 | - <%= labelled_check_box _("Culture"), "software_categories[culture]", "1", context.profile.software_info.software_categories.culture %> <br /> | |
110 | - | |
111 | - <%= labelled_check_box _("National Defense"), "software_categories[national_defense]", "1", context.profile.software_info.software_categories.national_defense %> <br /> | |
112 | - | |
113 | - <%= labelled_check_box _("Economy and Finances"), "software_categories[economy_and_finances]", "1", context.profile.software_info.software_categories.economy_and_finances %> <br /> | |
114 | - | |
115 | - <%= labelled_check_box _("Education"), "software_categories[education]", "1", context.profile.software_info.software_categories.education %> <br /> | |
116 | - | |
117 | - <%= labelled_check_box _("Energy"), "software_categories[energy]", "1", context.profile.software_info.software_categories.energy %> <br /> | |
118 | - | |
119 | - <%= labelled_check_box _("Sports"), "software_categories[sports]", "1", context.profile.software_info.software_categories.sports %> <br /> | |
120 | - | |
121 | - <%= labelled_check_box _("Habitation"), "software_categories[habitation]", "1", context.profile.software_info.software_categories.habitation %> <br /> | |
122 | - | |
123 | - <%= labelled_check_box _("Industry"), "software_categories[industry]", "1", context.profile.software_info.software_categories.industry %> <br /> | |
124 | - | |
125 | - <%= labelled_check_box _("Environment"), "software_categories[environment]", "1", context.profile.software_info.software_categories.environment %> <br /> | |
126 | - | |
127 | - <%= labelled_check_box _("Research and Development"), "software_categories[research_and_development]", "1", context.profile.software_info.software_categories.research_and_development %> <br /> | |
128 | - | |
129 | - <%= labelled_check_box _("Social Security"), "software_categories[social_security]", "1", context.profile.software_info.software_categories.social_security %> <br /> | |
130 | - | |
131 | - <%= labelled_check_box _("Social Protection"), "software_categories[social_protection]", "1", context.profile.software_info.software_categories.social_protection %> <br /> | |
132 | - | |
133 | - <%= labelled_check_box _("Sanitation"), "software_categories[sanitation]", "1", context.profile.software_info.software_categories.sanitation %> <br /> | |
134 | - | |
135 | - <%= labelled_check_box _("Health"), "software_categories[health]", "1", context.profile.software_info.software_categories.health %> <br /> | |
136 | - | |
137 | - <%= labelled_check_box _("Security and Public Order"), "software_categories[security_public_order]", "1", context.profile.software_info.software_categories.security_public_order %> <br /> | |
138 | - | |
139 | - <%= labelled_check_box _("Work"), "software_categories[work]", "1", context.profile.software_info.software_categories.work %> <br /> | |
140 | - | |
141 | - <%= labelled_check_box _("Transportation"), "software_categories[transportation]", "1", context.profile.software_info.software_categories.transportation %> <br /> | |
142 | - | |
143 | - <%= labelled_check_box _("Urbanism"), "software_categories[urbanism]", "1", context.profile.software_info.software_categories.urbanism %> <br /> | |
144 | -</div> | |
145 | - | |
146 | -<h3> <%= _("Operating System") %> </h3> | |
147 | -<div id='operating_system_fields'> | |
148 | - <% OperatingSystemHelper.operating_system_as_tables(context.profile.software_info.operating_systems).each do |tab| %> | |
149 | - <%= tab.call %> | |
150 | - <%end%> | |
151 | -</div> | |
152 | -<div id='table_structure_operating_system' style="display:none"><%= OperatingSystemHelper.add_dynamic_table %></div> | |
153 | -<%= link_to _('New Operating System'), "#", :class=>"button icon-add with-text new-dynamic-table dynamic-operating_system"%> |