2024-12-08 10:35:28 +08:00
<div class="ui small modal" id="issue-label-edit-modal"
data-current-page-link=" {{ $ .Link }} " {{ / * will be used to construct "new label" and "edit label" URLs * / }}
data-text-new-label=" {{ ctx .Locale .Tr "repo.issues.new_label" }} "
data-text-edit-label=" {{ ctx .Locale .Tr "repo.issues.label_modify" }} "
>
<div class="header"></div>
2020-06-11 23:06:20 +02:00
<div class="content">
2025-06-07 01:25:08 -07:00
<form class="ui form ignore-dirty form-fetch-action" method="post">
2024-12-08 10:35:28 +08:00
<input name="id" type="hidden">
2023-02-18 20:17:39 +01:00
<div class="required field">
2023-09-25 10:56:50 +02:00
<label for="name"> {{ ctx .Locale .Tr "repo.issues.label_title" }} </label>
2023-02-18 20:17:39 +01:00
<div class="ui small input">
2023-09-25 10:56:50 +02:00
<input class="label-name-input" name="title" placeholder=" {{ ctx .Locale .Tr "repo.issues.new_label_placeholder" }} " autofocus required maxlength="50">
2020-06-11 23:06:20 +02:00
</div>
2023-02-18 20:17:39 +01:00
</div>
<div class="field label-exclusive-input-field">
<div class="ui checkbox">
<input class="label-exclusive-input" name="exclusive" type="checkbox">
2023-09-25 10:56:50 +02:00
<label> {{ ctx .Locale .Tr "repo.issues.label_exclusive" }} </label>
2020-04-01 00:14:46 -04:00
</div>
2023-03-28 00:05:51 +08:00
<br>
2024-02-23 01:02:33 +08:00
<small class="desc"> {{ ctx .Locale .Tr "repo.issues.label_exclusive_desc" }} </small>
2024-03-24 19:23:38 +01:00
<div class="desc tw-ml-1 tw-mt-2 tw-hidden label-exclusive-warning">
2024-02-23 01:02:33 +08:00
{{ svg "octicon-alert" }} {{ ctx .Locale .Tr "repo.issues.label_exclusive_warning" }}
2023-02-18 20:17:39 +01:00
</div>
2025-04-10 12:18:07 -05:00
<div class="field label-exclusive-order-input-field tw-mt-2">
<label class="flex-text-block">
{{ ctx .Locale .Tr "repo.issues.label_exclusive_order" }}
<span data-tooltip-content=" {{ ctx .Locale .Tr "repo.issues.label_exclusive_order_tooltip" }} "> {{ svg "octicon-info" }} </span>
</label>
<input class="label-exclusive-order-input" name="exclusive_order" type="number" maxlength="4">
</div>
2023-08-14 15:26:14 +05:30
</div>
<div class="field label-is-archived-input-field">
<div class="ui checkbox">
<input class="label-is-archived-input" name="is_archived" type="checkbox">
2023-09-25 10:56:50 +02:00
<label> {{ ctx .Locale .Tr "repo.issues.label_archive" }} </label>
2023-08-14 15:26:14 +05:30
</div>
2024-03-24 17:42:49 +01:00
<i class="tw-ml-1" data-tooltip-content= {{ ctx .Locale .Tr "repo.issues.label_archive_tooltip" }} >
2023-08-14 15:26:14 +05:30
{{ svg "octicon-info" }}
</i>
2023-02-18 20:17:39 +01:00
</div>
<div class="field">
2023-09-25 10:56:50 +02:00
<label for="description"> {{ ctx .Locale .Tr "repo.issues.label_description" }} </label>
2023-02-18 20:17:39 +01:00
<div class="ui small fluid input">
2023-09-25 10:56:50 +02:00
<input class="label-desc-input" name="description" placeholder=" {{ ctx .Locale .Tr "repo.issues.new_label_desc_placeholder" }} " maxlength="200">
2023-02-18 20:17:39 +01:00
</div>
</div>
2024-12-19 09:37:12 +01:00
<div class="field">
2023-09-25 10:56:50 +02:00
<label for="color"> {{ ctx .Locale .Tr "repo.issues.label_color" }} </label>
2025-07-06 23:37:26 +08:00
<div class="color-picker-combo" data-global-init="initColorPicker">
2025-06-07 01:25:08 -07:00
<!-- the "#" is optional because backend NormalizeColor is able to handle it, API also accepts both formats, and it is easier for users to directly copy-paste a hex value -->
<input name="color" value="#70c24a" placeholder="#c320f6" required pattern="^#?([\dA-Fa-f] { 3}|[\dA-Fa-f] { 6})$" maxlength="7">
2023-08-28 22:14:51 +08:00
{{ template "repo/issue/label_precolors" }}
2020-06-11 23:06:20 +02:00
</div>
2020-04-01 00:14:46 -04:00
</div>
2020-06-11 23:06:20 +02:00
</form>
</div>
<div class="actions">
2023-06-09 10:37:47 +02:00
<button class="ui small basic cancel button">
2023-03-14 04:34:09 +01:00
{{ svg "octicon-x" }}
2023-09-25 10:56:50 +02:00
{{ ctx .Locale .Tr "cancel" }}
2023-03-14 04:34:09 +01:00
</button>
<button class="ui primary small approve button">
2023-05-01 19:25:54 +02:00
{{ svg "fontawesome-save" }}
2023-09-25 10:56:50 +02:00
{{ ctx .Locale .Tr "save" }}
2023-03-14 04:34:09 +01:00
</button>
2020-04-01 00:14:46 -04:00
</div>
2020-06-11 23:06:20 +02:00
</div>