Skip to content

Commit

Permalink
fix crazy html, h3 was e block
Browse files Browse the repository at this point in the history
  • Loading branch information
claudyus committed Aug 24, 2014
1 parent 911ddd2 commit 969c102
Showing 1 changed file with 10 additions and 11 deletions.
21 changes: 10 additions & 11 deletions lwp/templates/edit.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,16 @@
{% block content %}
<div class="span6">
{{ super() }}
<h3 class="head">{{ container|capitalize }}</small>
<div class="btn-group" data-toggle="buttons-radio" style="float:right;">
<div class="btn-group">
{% set start_action = {'STOPPED':'start','FROZEN':'unfreeze'} %}
<a class="btn{% if infos['status'] == 'RUNNING' %} disabled{% endif %}" {% if infos['status'] == 'STOPPED' or infos['status'] == 'FROZEN' %}href="{{ url_for('main.action', name=container, action=start_action[infos['status']], from='edit') }}"{% endif %}><i class="icon-play"></i> Start</a>
<a class="btn{% if infos['status'] == 'STOPPED' %} disabled{% endif %}" {% if infos['status'] == 'RUNNING' or infos['status'] == 'FROZEN' %}href="{{ url_for('main.action', name=container, action='stop', from='edit') }}"{% endif %}><i class="icon-stop"></i> Stop</a>
<a class="btn{% if infos['status'] == 'FROZEN' or infos['status'] == 'STOPPED' %} disabled{% endif %}" {% if infos['status'] == 'RUNNING' %}href="{{ url_for('main.action', name=container, action='freeze', from='edit') }}"{% endif %}><i class="icon-pause"></i> Freeze</a>
</div>
</div>
</h3>
<br />
<h3 class="head">{{ container|capitalize }}</h3>
<div class="btn-group pull-right" data-toggle="buttons-radio">
<div class="btn-group">
{% set start_action = {'STOPPED':'start','FROZEN':'unfreeze'} %}
<a class="btn{% if infos['status'] == 'RUNNING' %} disabled{% endif %}" {% if infos['status'] == 'STOPPED' or infos['status'] == 'FROZEN' %}href="{{ url_for('main.action', name=container, action=start_action[infos['status']], from='edit') }}"{% endif %}><i class="icon-play"></i> Start</a>
<a class="btn{% if infos['status'] == 'STOPPED' %} disabled{% endif %}" {% if infos['status'] == 'RUNNING' or infos['status'] == 'FROZEN' %}href="{{ url_for('main.action', name=container, action='stop', from='edit') }}"{% endif %}><i class="icon-stop"></i> Stop</a>
<a class="btn{% if infos['status'] == 'FROZEN' or infos['status'] == 'STOPPED' %} disabled{% endif %}" {% if infos['status'] == 'RUNNING' %}href="{{ url_for('main.action', name=container, action='freeze', from='edit') }}"{% endif %}><i class="icon-pause"></i> Freeze</a>
</div>
</div>

<form id="config" class="form-horizontal" action="{{ url_for('main.edit', container=container) }}" method="post">
<div class="control-group">
<label class="control-label" for="inputHostname">Hostname</label>
Expand Down

0 comments on commit 969c102

Please sign in to comment.