fixups to the rebase

[?]
Mar 18, 2021, 8:08 PM
MTZKFONQJNZATSZXPXCVRRIFMVPFUVPFXDKT4GE243TS5YHUOI6QC

Dependencies

  • [2] SWXX2O4A Update boostrap to latest 4.3.1
  • [3] QUMWPGCU Add flake configuration to the web interface
  • [4] TQVKZQUG Use the REST API in the web interface for editing jobsets
  • [5] OX6NYJDV Split viewing and editing a jobset

Change contents

  • replacement in src/root/edit-jobset.tt at line 97
    [2.721001][2.721001:721208]()
    <label class="btn btn-secondary[% IF jobset.type == 1 %] active[% END %]">
    <input type="radio" id="type-flake" name="enabled" value="1" [% IF jobset.type == 1 %]checked[% END %]>Flake</button>
    [2.721001]
    [2.721208]
    <label id="type-flake" class="btn btn-secondary[% IF jobset.type == 1 %] active[% END %]">
    <input type="radio" name="type" value="1" [% IF jobset.type == 1 %]checked[% END %]>Flake</button>
  • replacement in src/root/edit-jobset.tt at line 100
    [2.721223][2.721223:721432]()
    <label class="btn btn-secondary[% IF jobset.type == 0 %] active[% END %]">
    <input type="radio" id="type-legacy" name="enabled" value="0" [% IF jobset.type == 0 %]checked[% END %]>Legacy</button>
    [2.721223]
    [2.721432]
    <label id="type-legacy" class="btn btn-secondary[% IF jobset.type == 0 %] active[% END %]">
    <input type="radio" name="type" value="0" [% IF jobset.type == 0 %]checked[% END %]>Legacy</button>
  • replacement in src/root/edit-jobset.tt at line 198
    [3.3170][3.3170:3205]()
    if ($("#type").val() == 0) {
    [3.3170]
    [3.3205]
    if ($("input[type='radio'][name='type']:checked").val() == 0) {
  • replacement in src/root/edit-jobset.tt at line 207
    [3.3381][3.3381:3490]()
    $("#type-flake").click(function() { update(); });
    $("#type-legacy").click(function() { update(); });
    [3.3381]
    [3.3490]
    $("input[type='radio'][name='type']").change(function() { update(); });