From b6ca062670b342344df08b53fb216db619ef42bc Mon Sep 17 00:00:00 2001 From: Nicolas Braud-Santoni Date: Sun, 7 Aug 2016 16:39:42 +0200 Subject: Import legacy manman source Copied from www.ffgraz.net --- app/views/person/_form.rhtml | 25 +++++++++++++++++++++++++ app/views/person/_nav.rhtml | 11 +++++++++++ app/views/person/_pshow.rhtml | 20 ++++++++++++++++++++ app/views/person/change_pass.rhtml | 22 ++++++++++++++++++++++ app/views/person/edit.rhtml | 26 ++++++++++++++++++++++++++ app/views/person/list.rhtml | 20 ++++++++++++++++++++ app/views/person/login.rhtml | 19 +++++++++++++++++++ app/views/person/new.rhtml | 8 ++++++++ app/views/person/register.rhtml | 35 +++++++++++++++++++++++++++++++++++ app/views/person/revoke_pass.rhtml | 15 +++++++++++++++ app/views/person/show.rhtml | 8 ++++++++ 11 files changed, 209 insertions(+) create mode 100644 app/views/person/_form.rhtml create mode 100644 app/views/person/_nav.rhtml create mode 100644 app/views/person/_pshow.rhtml create mode 100644 app/views/person/change_pass.rhtml create mode 100644 app/views/person/edit.rhtml create mode 100644 app/views/person/list.rhtml create mode 100644 app/views/person/login.rhtml create mode 100644 app/views/person/new.rhtml create mode 100644 app/views/person/register.rhtml create mode 100644 app/views/person/revoke_pass.rhtml create mode 100644 app/views/person/show.rhtml (limited to 'app/views/person') diff --git a/app/views/person/_form.rhtml b/app/views/person/_form.rhtml new file mode 100644 index 0000000..a640109 --- /dev/null +++ b/app/views/person/_form.rhtml @@ -0,0 +1,25 @@ +<%= error_messages_for 'person' %> + + +


+<%= text_field 'person', 'name' %>

+ +


+<%= text_field 'person', 'nick' %>

+ +


+<%= text_field 'person', 'firstname' %>

+ +


+<%= text_field 'person', 'lastname' %>

+ +


+<%= text_field 'person', 'email' %>

+ +


+<%= text_field 'person', 'tel' %>

+ +


+<%= password_field 'person', 'password' %>

+ + diff --git a/app/views/person/_nav.rhtml b/app/views/person/_nav.rhtml new file mode 100644 index 0000000..bcde756 --- /dev/null +++ b/app/views/person/_nav.rhtml @@ -0,0 +1,11 @@ +
+

+ Navigation: + <%= link_to "Locations", :action => "list", :controller => "location" %> | + <%= link_to "Persons", :action => 'list', :controller => 'person' %>
+ Benutzer: + <%= link_to session[:person].email , :action => 'show', :controller => 'person', :id => session[:person].id %> | + <%= link_to 'Logout', :action => 'logout', :controller => 'person' %> +

+
+
diff --git a/app/views/person/_pshow.rhtml b/app/views/person/_pshow.rhtml new file mode 100644 index 0000000..61a1f32 --- /dev/null +++ b/app/views/person/_pshow.rhtml @@ -0,0 +1,20 @@ +<% if @person != nil %> + + + + + + + + + + +
Nick:<%= @person.nick %>
Email:<%= mail_to @person.email, @person.email, :encode => 'hex' %>
Tel:<%= @person.tel %>
+

+ <%= link_to 'Show', { :action => 'show', :controller => 'person', :id => @person.id } %> | + <%= link_to 'Edit', { :action => 'edit', :controller => 'person', :id => @person.id } %> | + <%= link_to 'Change Password', { :action => 'change_pass', + :controller => 'person', + :id => @person.id } %> +

+<% end %> diff --git a/app/views/person/change_pass.rhtml b/app/views/person/change_pass.rhtml new file mode 100644 index 0000000..f1d62fa --- /dev/null +++ b/app/views/person/change_pass.rhtml @@ -0,0 +1,22 @@ +<%= render :partial => "person/nav" %> +

Passwort aendern

+ +<%= form_tag :action => "do_change_pass", :id => @person.id %> + + + + + + + + + + + + + +
altes Passwort:<%= password_field_tag 'oldpassword' %>
neues Passwort:<%= password_field_tag 'password' %>
nochmals:<%= password_field_tag 'password2' %>
+ +<%= submit_tag 'Change' %> +<%= end_form_tag %> + diff --git a/app/views/person/edit.rhtml b/app/views/person/edit.rhtml new file mode 100644 index 0000000..7c0f1da --- /dev/null +++ b/app/views/person/edit.rhtml @@ -0,0 +1,26 @@ +<%= render :partial => "person/nav" %> +

Person

+<%= start_form_tag :action => 'update', :id => @person %> + + + + + + + + + + + + + + + + +
nick<%= text_field 'person', 'nick' %>
Vorname<%= text_field 'person', 'firstname' %>
Nachname<%= text_field 'person', 'lastname' %>
Email:<%= text_field 'person', 'email' %>
Tel:<%= text_field 'person', 'tel' %>
+ <%= submit_tag 'Edit' %> +<%= end_form_tag %> + +<%= link_to 'Show', :action => 'show', :id => @person %> | +<%= link_to 'Back', :action => 'list' %> + diff --git a/app/views/person/list.rhtml b/app/views/person/list.rhtml new file mode 100644 index 0000000..37b8128 --- /dev/null +++ b/app/views/person/list.rhtml @@ -0,0 +1,20 @@ + +<%= render :partial => "person/nav" %> +

Personen

+ + + + + +<% @persons.each do |person| %> + + + + + + + + +<% end %> +
NicknameEmailTel.
<%= person.nick %><%= mail_to person.email, person.email, :encode => "hex" %><%= person.tel %><%= link_to 'Show', :action => 'show', :id => person %><%= link_to 'Edit', :action => 'edit', :id => person %><%= link_to 'Destroy', { :action => 'destroy', :id => person }, :confirm => 'Are you sure?', :post => true %>
+ diff --git a/app/views/person/login.rhtml b/app/views/person/login.rhtml new file mode 100644 index 0000000..a8d8fc3 --- /dev/null +++ b/app/views/person/login.rhtml @@ -0,0 +1,19 @@ +<% %> +

Login

+<%= form_tag :action => "sign_on" %> + + + + + + + + +
Email:<%= text_field 'person', 'email' %> +
Passwort:<%= password_field 'person', 'password' %>
+ +<%= submit_tag 'Login' %> +<%= end_form_tag %> +
+<%= link_to 'Passwort vergessen', :action => 'revoke_pass' %> | +<%= link_to 'Registrieren', :action => 'register' %> diff --git a/app/views/person/new.rhtml b/app/views/person/new.rhtml new file mode 100644 index 0000000..0e79d24 --- /dev/null +++ b/app/views/person/new.rhtml @@ -0,0 +1,8 @@ +

New person

+ +<%= start_form_tag :action => 'create' %> + <%= render :partial => 'form' %> + <%= submit_tag "Create" %> +<%= end_form_tag %> + +<%= link_to 'Back', :action => 'list' %> diff --git a/app/views/person/register.rhtml b/app/views/person/register.rhtml new file mode 100644 index 0000000..4c670a4 --- /dev/null +++ b/app/views/person/register.rhtml @@ -0,0 +1,35 @@ +

register Person

+

Hier kannst du dich fuer FunkFeuer Graz registrieren damit wir dir IP Adressen und + Locations zuordnen koennen. +

+<%= start_form_tag :action => 'create', :id => @person %> + + + + + + + + + + + + + + + + + + + + + + + +
Nickname<%= text_field 'person', 'nick' %>
Vorname<%= text_field 'person', 'firstname' %>*
Nachname<%= text_field 'person', 'lastname' %>*
Email:<%= text_field 'person', 'email' %>*
Tel:<%= text_field 'person', 'tel' %>
Passwort<%= password_field_tag 'password' %>*
Passwort<%= password_field_tag 'password2' %>*
+ <%= submit_tag 'Create' %> +<%= end_form_tag %> + +

Bitte mindestens Felder mit * eintragen

+

Die Felder Nickname, Email und Tel + koennen von allen angemeldeten Benutzern eingesehen werden.

diff --git a/app/views/person/revoke_pass.rhtml b/app/views/person/revoke_pass.rhtml new file mode 100644 index 0000000..99c3a27 --- /dev/null +++ b/app/views/person/revoke_pass.rhtml @@ -0,0 +1,15 @@ +

Revoke Passwort

+

Bitte geben Sie Ihre email Adresse ein.
+Ein neues Passwort wird Ihnen dann zugesendet.

+ +<%= form_tag :action => "do_revoke" %> + + + + +
Email:<%= text_field 'person', 'email' %> +
+ +<%= submit_tag 'Revoke' %> +<%= end_form_tag %> + diff --git a/app/views/person/show.rhtml b/app/views/person/show.rhtml new file mode 100644 index 0000000..be5541f --- /dev/null +++ b/app/views/person/show.rhtml @@ -0,0 +1,8 @@ +<%= render :partial => "person/nav" %> +

Person

+<%= render :partial => "person/pshow", :object => @person %> +
+

Locations

+<%= render :partial => "location/plist", + :object => @locations %> + -- cgit v1.2.1