euscanwww: Improved forms UI, added preferences page and change password
Signed-off-by: volpino <fox91@anche.no>
This commit is contained in:
		@@ -8,8 +8,19 @@
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
{% block content %}
 | 
			
		||||
  <h2>Welcome {{ user }}</h2>
 | 
			
		||||
  <h2>
 | 
			
		||||
    Welcome {{ user }}
 | 
			
		||||
 | 
			
		||||
    <span class="pull-right">
 | 
			
		||||
      <a href="{% url "auth_password_change" %}" class="btn">
 | 
			
		||||
        Change password
 | 
			
		||||
      </a>
 | 
			
		||||
 | 
			
		||||
      <a href="{% url "accounts_preferences" %}" class="btn">
 | 
			
		||||
        Preferences
 | 
			
		||||
      </a>
 | 
			
		||||
    </span>
 | 
			
		||||
  </h2>
 | 
			
		||||
 | 
			
		||||
  <h3 class="padded">Summary</h3>
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
@@ -0,0 +1,32 @@
 | 
			
		||||
{% extends "_base.html" %}
 | 
			
		||||
{% load url from future %}
 | 
			
		||||
 | 
			
		||||
{% block title %}
 | 
			
		||||
  {{ block.super }} - Edit user preferences for {{ user }}
 | 
			
		||||
{% endblock %}
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
{% block content %}
 | 
			
		||||
  {% if updated %}
 | 
			
		||||
    <div class="alert alert-success">
 | 
			
		||||
      <strong>Saved!</strong> Your preferences has been saved
 | 
			
		||||
    </div>
 | 
			
		||||
  {% endif %}
 | 
			
		||||
 | 
			
		||||
  <h2>
 | 
			
		||||
    Edit user preferences
 | 
			
		||||
  </h2>
 | 
			
		||||
 | 
			
		||||
  <form method='post' action='.'>
 | 
			
		||||
    {% csrf_token %}
 | 
			
		||||
    <table class="table">
 | 
			
		||||
      {{ form }}
 | 
			
		||||
      <tr>
 | 
			
		||||
        <td></td>
 | 
			
		||||
        <td>
 | 
			
		||||
          <input class="btn" type='submit' value="Save" />
 | 
			
		||||
        </td>
 | 
			
		||||
      </tr>
 | 
			
		||||
    </table>
 | 
			
		||||
  </form>
 | 
			
		||||
{% endblock %}
 | 
			
		||||
@@ -15,7 +15,7 @@
 | 
			
		||||
 | 
			
		||||
<form action="{% url "world_scan" %}" method="post" enctype="multipart/form-data">{% csrf_token %}
 | 
			
		||||
{{ world_form.as_p }}
 | 
			
		||||
<input type="submit" value="Submit" />
 | 
			
		||||
<input class="btn" type="submit" value="Submit" />
 | 
			
		||||
</form>
 | 
			
		||||
 | 
			
		||||
<hr />
 | 
			
		||||
@@ -24,7 +24,7 @@
 | 
			
		||||
 | 
			
		||||
<form action="{% url "world_scan" %}" method="post">{% csrf_token %}
 | 
			
		||||
{{ packages_form.as_p }}
 | 
			
		||||
<input type="submit" value="Submit" />
 | 
			
		||||
<input class="btn" type="submit" value="Submit" />
 | 
			
		||||
</form>
 | 
			
		||||
 | 
			
		||||
{% endblock %}
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user