Skip to content

Commit

Permalink
N21-2166 new fields to external tool form (#266)
Browse files Browse the repository at this point in the history
  • Loading branch information
GordonNicholasCap authored Oct 2, 2024
1 parent 3857064 commit c47a295
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
1 change: 1 addition & 0 deletions controllers/ctltools.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ const transformToolInputs = (id, body) => {
body.openNewTab = !!body.openNewTab;
body.isHidden = !!body.isHidden;
body.isDeactivated = !!body.isDeactivated;
body.isPreferred = !!body.isPreferred;
body.restrictToContexts = [].concat(body.restrictToContexts || []);

if (body.config.type === 'oauth2') {
Expand Down
11 changes: 11 additions & 0 deletions views/ctltools/forms/add-ctl-tool.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,17 @@
Ja, es soll deaktiviert werden
</label>
</div>
<div class="form-group">
<label class="control-label">Als "bevorzugtes Tool" markieren?</label>
<label style="width: 100%">
<input type="checkbox" name="isPreferred" value="1" class="form-control" style="width:10%;display:inline-block;">
Ja, es soll markiert werden
</label>
<label style="width: 100%; display: flex; padding-left: 10.5%;">
<span style="flex-basis: 25%; align-content: center">Icon-Name:</span>
<input type="text" name="iconName" class="form-control" style="flex-basis: auto">
</label>
</div>
<div class="form-group">
<label class="control-label" for="restrictToContexts">Nutzung des Tools auf folgende Kontexte beschränken:</label>
<select id="restrictToContexts" name="restrictToContexts" multiple>
Expand Down

0 comments on commit c47a295

Please sign in to comment.