Project

General

Profile

« Previous | Next » 

Revision b3ac878a

Added by Tomer Brisker over 8 years ago

Fixes #11466, #11462 - Improve layout of textareas

View differences:

app/views/templates/_form.html.erb
<label class="control-label" for="template"><%= _("Template editor") %></label>
<div class="navbar navbar-form">
<div class="btn-group" data-toggle="buttons" >
<label class="btn btn-default btn-sm active" onclick="set_code()">
<label class="btn btn-default btn-md active" onclick="set_code()">
<input type="radio" name="options" id="option1" ><%= _("Code") %>
</label>
<label class="btn btn-default btn-sm" onclick="set_preview()">
<label class="btn btn-default btn-md" onclick="set_preview()">
<input type="radio" name="options" id="option2" ><%= _("Diff") %>
</label>
<label class="btn btn-default btn-sm" onclick="set_render()">
<label class="btn btn-default btn-md" onclick="set_render()">
<input type="radio" name="options" id="option3" ><%= _("Preview") %>
</label>
</div>

Also available in: Unified diff