account.html 4.01 KB
Newer Older
1 2 3 4 5
{% extends "layout.html" %}
{% block title %}Update your account{% endblock %}
{% block head %}
  {{ super() }}
  <script src="{{ url_for('static', filename='js/scripts/account.js') }}" type="text/javascript" charset="utf-8"></script>
6 7
  <link href="{{ url_for('static', filename='css/jqueryTabs.css', _external=False) }}" rel="stylesheet" type="text/css" media="screen" />
  <script src="{{ url_for('static', filename='js/jquery/jqueryTabs.js') }}" type="text/javascript" charset="utf-8"></script>
8 9
{% endblock %}
{% block body %}
10
<h2>Web runner parameters</h2><br/>
11
<div id="tabContainer">
12 13
  <ul>
    <li><a href="#tab1" class="active">Your personal information</a></li>
14
    {% if params %}
15
    <li><a href="#tab2">Build & Run configuration</a></li>
16
    {% endif %}
17
    <!--<li><a href="#tab3">Configurations</a></li>-->
18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38
  </ul><!-- //Tab buttons -->
  <div class="tabDetails">
    <div id="tab1" class="tabContents">
      <form class="account">
        <div class='form'>
          <label for="name">Your name: </label>
          <input type='text' name='name' id='name' value='{{name}}'/>
          <div class='clear'></div>
          <label for="email">Your email address: </label>
          <input type='text' name='email' id='email' value='{{email}}'/>
          <div class='clear'></div>
          <label for="username">User name: </label>
          <input type='text' name='username' id='username' value='{{username}}'/>
          <div class='clear'></div>
          <label for="password">Password: </label>
          <input type='password' name='password' id='password' value=''/>
          <div class='clear'></div>
          <label for="cpassword">Confirm Password: </label>
          <input type='password' name='cpassword' id='cpassword' value=''/>
          <div class='clear'></div>
          <br/>
39
          <label for="rcode">Password Recovery code:</label>
40
          <input type='password' name='rcode' id='rcode' value=''/>
41
          <span class="information"><a href="#" id="information" rel="tooltip">help ?</a></span>
42 43 44 45 46 47 48 49 50
          <div class='clear'></div>
          <br/>
          <label></label>
          <input type="submit" name="update" id ="update" value="Update Account" class="button"/>
          <div class='clear'></div>
        </div>
        <input type="hidden" name="hasAccount" id="hasAccount" value="{{name}}"/>
      </form>
    </div>
51
    {% if params %}
52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75
    <div id="tab2" class="tabContents">
      <form class="slapgrid">
        <div class='form'>
          <h2>Which one do you want to run ?</h2>
          <label for="run_software">Build :</label>
          <input type='checkbox' name='run_software' id='run_software' value='run_software' {% if params.run_software -%}checked{% endif %}>
          <div class='clear'></div>
          <label for="run_instance">Run :</label>
          <input type='checkbox' name='run_instance' id='run_instance' value='run_instance' {% if params.run_instance -%}checked{% endif %}>
          <div class='clear'></div>
          <h2>How many tries ?</h2>
          <label for="max_run_software">Max times for Build :</label>
          <input type='text' name='max_run_software' id='max_run_software' value="{{params.max_run_software}}">
          <div class='clear'></div>
          <label for="max_run_instance">Max times for Run :</label>
          <input type='text' name='max_run_instance' id='max_run_instance' value="{{params.max_run_instance}}">
          <div class='clear'></div>
          <br/>
          <label></label>
          <input type="submit" name="save" id ="save" value="Save config" class="button"/>
          <div class='clear'></div>
        </div>
      </form>
    </div>
76
    {% endif %}
77
    <!--<div id="tab3" class="tabContents">
78
    </div>-->
79 80
</div>
</div>
81 82 83 84
{% if username %}<div id="file_info" class="file_info">leave passwords blank to preserve your current password...
  </div><br/>{%endif%}
<div id="tooltip-information" style="display:none; float:left">
  <p style="font-size:12px;">
85
  Please find this information in your slaprunner<br/> connection informations.
86 87
  </p>
</div>
88
{% endblock %}