Commit 945956c1e3fe5e232e2b6ea6425be13b94155c7a
Exists in
master
and in
9 other branches
Merge branch 'signup-intro' into 'master'
Signup introduction text See merge request !485
Showing
4 changed files
with
15 additions
and
0 deletions
Show diff stats
app/models/environment.rb
... | ... | @@ -248,6 +248,9 @@ class Environment < ActiveRecord::Base |
248 | 248 | # store the Environment settings as YAML-serialized Hash. |
249 | 249 | acts_as_having_settings :field => :settings |
250 | 250 | |
251 | + # introduce and explain to users something about the signup | |
252 | + settings_items :signup_intro, :type => String | |
253 | + | |
251 | 254 | # the environment's terms of use: every user must accept them before registering. |
252 | 255 | settings_items :terms_of_use, :type => String |
253 | 256 | ... | ... |
app/views/account/signup.html.erb
... | ... | @@ -0,0 +1,5 @@ |
1 | +<div class='description'> | |
2 | + <%= _('This text will be shown to the user on the top of the sign up form.') %> | |
3 | +</div> | |
4 | + | |
5 | +<%= labelled_form_field(_('Body'), text_area(:environment, :signup_intro, :cols => 40, :style => 'width: 100%', :class => 'mceEditor')) %> | ... | ... |
app/views/admin_panel/site_info.html.erb
... | ... | @@ -17,6 +17,8 @@ |
17 | 17 | :content => (render :partial => 'signup_welcome_text', :locals => {:f => f})} %> |
18 | 18 | <% tabs << {:title => _('Signup welcome page'), :id => 'signup-welcome-message', |
19 | 19 | :content => (render :partial => 'signup_welcome_screen', :locals => {:f => f}) }%> |
20 | + <% tabs << {:title => _('Signup introduction text'), :id => 'signup-intro', | |
21 | + :content => (render :partial => 'signup_intro', :locals => {:f => f})} %> | |
20 | 22 | <%= render_tabs(tabs) %> |
21 | 23 | <% button_bar do %> |
22 | 24 | <%= submit_button(:save, _('Save'), :cancel => {:action => 'index'}) %> | ... | ... |