Skip to content

Commit ebde198

Browse files
committed
Align Quick asset creation portlet layout with Quick ticket creation
Wrap the label, catalog selector, and submit in the same row mt-2 / col-auto structure already used by the sibling "Quick ticket creation" (CreateTicket) portlet, and give the submit the standard btn btn-primary class and a name, so the two portlets render consistently and the catalog dropdown is compact and inline.
1 parent 58ee33c commit ebde198

1 file changed

Lines changed: 11 additions & 4 deletions

File tree

share/html/User/Elements/Portlets/CreateAsset

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -51,10 +51,17 @@
5151
% next if grep { lc $key eq $_ } qw(user catalog);
5252
<input type="hidden" name="<% $key %>" value="<% $ARGS{$key} %>" />
5353
% }
54-
<&|/l_unsafe,
55-
$m->scomp("/Asset/Elements/SelectCatalog", Default => $ARGS{Catalog}),
56-
&>Create a new asset in the catalog [_1]</&>
57-
<input type="submit" value="<&|/l&>Create</&>">
54+
<div class="row mt-2">
55+
<div class="col-auto label">
56+
<&|/l&>Create a new asset in the catalog</&>:
57+
</div>
58+
<div class="col-auto">
59+
<& /Asset/Elements/SelectCatalog, Default => $ARGS{Catalog} &>
60+
</div>
61+
<div class="col-auto">
62+
<input type="submit" name="CreateAsset" value="<&|/l&>Create</&>" class="btn btn-primary">
63+
</div>
64+
</div>
5865
</form>
5966
</&>
6067
<%INIT>

0 commit comments

Comments
 (0)