Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix issue #3 Position of render button is inconvenient #4

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
38 changes: 22 additions & 16 deletions ansible_template_ui/client/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -55,24 +55,30 @@ <h1 class='text-center'>Ansible Template Tester</h1>
ng-trim="false"
placeholder="{{ templateExample }}"></textarea>
</div>
<div ng-show="rendered">
<label>Rendered</label>
<pre>{{ rendered }}</pre>
</div>
</div>
<div class="col-lg-6">
<div class="btn-group" uib-dropdown ng-show="template">
<button id="split-button" class="btn btn-primary" type="button" ng-click="render()">Render</button>
<div class="row">
<div class="col-lg-6">
<div class="btn-group" uib-dropdown ng-show="template">
<button id="split-button" class="btn btn-primary" type="button" ng-click="render()">Render</button>

<button type="button" class="btn btn-primary" uib-dropdown-toggle>
<span class="caret"></span>
<span class="sr-only">Toggle Dropdown</span>
</button>
<button type="button" class="btn btn-primary" uib-dropdown-toggle>
<span class="caret"></span>
<span class="sr-only">Toggle Dropdown</span>
</button>

<ul class="dropdown-menu" uib-dropdown-menu role="menu" aria-labelledby="split-button">
<li role="menuitem"><a href="#" ng-click="render()">Devel</a></li>
<li role="menuitem"><a href="#" ng-click="render('stable')">Stable</a></li>
</ul>
<ul class="dropdown-menu" uib-dropdown-menu role="menu" aria-labelledby="split-button">
<li role="menuitem"><a href="#" ng-click="render()">Devel</a></li>
<li role="menuitem"><a href="#" ng-click="render('stable')">Stable</a></li>
</ul>
</div>
</div>
</div>
<div class="row">
<div class="col-lg-12">
<div ng-show="rendered">
<label>Rendered</label>
<pre>{{ rendered }}</pre>
</div>
</div>
</div>
</div>
</div>
Expand Down