[Rt-commit] rt branch, 4.6/improve-link-creation-display, created. rt-4.4.4-682-g2896e2dbd3
Michel Rodriguez
michel at bestpractical.com
Mon Feb 10 08:07:36 EST 2020
The branch, 4.6/improve-link-creation-display has been created
at 2896e2dbd35a08be608b660136ba644d3427d663 (commit)
- Log -----------------------------------------------------------------
commit 2896e2dbd35a08be608b660136ba644d3427d663
Author: michel <michel at bestpractical.com>
Date: Wed Jan 15 23:18:15 2020 +0100
Improve formatting of create linked ticket menu.
diff --git a/share/html/Elements/ShowLinks b/share/html/Elements/ShowLinks
index 6c429f9a4d..12c09bf6d7 100644
--- a/share/html/Elements/ShowLinks
+++ b/share/html/Elements/ShowLinks
@@ -67,12 +67,19 @@
</div>
% if ($Object->isa('RT::Ticket')) {
- <div class="form-row">
- <div class="col-md-12">
- <form action="<% RT->Config->Get('WebPath') ."/Helpers/SpawnLinkedTicket" %>" name="SpawnLinkedTicket">
- <input type="hidden" name="CloneTicket" value="<% $Object->id %>">
- <input type="submit" value="<&|/l&>Create</&>" name="SpawnLinkedTicket" class="btn btn-primary">
- <select name="LinkType" class="selectpicker">
+ <form action="<% RT->Config->Get('WebPath') ."/Helpers/SpawnLinkedTicket" %>" name="SpawnLinkedTicket">
+ <input type="hidden" name="CloneTicket" value="<% $Object->id %>">
+ <div class="form-row">
+ <div class="col-md-2 label">
+ <&|/l&>Create linked ticket:</&>
+ </div>
+ </div>
+ <div class="form-row">
+ <div class="col-lg-1 label">
+ <&|/l&>New</&>
+ </div>
+ <div class="col-lg-3">
+ <select name="LinkType" class="selectpicker form-control">
<option value="DependsOn-new"><% loc('Depends on') %></option>
<option value="new-DependsOn"><% loc('Depended on by') %></option>
<option value="MemberOf-new"><% loc('Parents') %></option>
@@ -80,11 +87,18 @@
<option value="RefersTo-new"><% loc('Refers to') %></option>
<option value="new-RefersTo"><% loc('Referred to by') %></option>
</select>
+ </div>
+ <div class="col-lg-2 label text-between-dropdowns">
<&|/l&>Ticket in</&>
+ </div>
+ <div class="col-lg-3">
<& /Elements/SelectNewTicketQueue, Name => 'CloneQueue' &>
- </form>
+ </div>
+ <div class="col-lg-2">
+ <input type="submit" value="<&|/l&>Create</&>" name="SpawnLinkedTicket" class="btn-md btn-primary">
+ </div>
</div>
- </div>
+ </form>
% }
<%INIT>
my @display = qw(DependsOn DependedOnBy MemberOf Members RefersTo ReferredToBy);
diff --git a/share/static/css/elevator-light/forms.css b/share/static/css/elevator-light/forms.css
index e422e40bab..bcaed62634 100644
--- a/share/static/css/elevator-light/forms.css
+++ b/share/static/css/elevator-light/forms.css
@@ -393,3 +393,8 @@ textarea.code {
#EditConfig ul.plugins {
margin: 0;
}
+
+/* center text between 2 dropdowns */
+.text-between-dropdowns {
+ text-align: center;
+}
-----------------------------------------------------------------------
More information about the rt-commit
mailing list