Make "Add to release" a modal dialog

[?]
Aug 15, 2013, 1:07 AM
XTKCALUAJ2EKYO6ZQDLRDCDLCM5NAMUJ5BB3N6XIY32Q6YOJTB5QC

Dependencies

  • [2] ASIRNHAH Load the dependency tabs on demand
  • [3] S5GCSCNS Update bootstrap to 2.3.1
  • [4] 2GUAKGTB Fix indentation of build.tt
  • [5] 2R7GHSA4 * hydra: added initial version of build graph
  • [6] HN3V252L On the build page, show how many aggregate constituents failed
  • [7] ZI535LI6 * hydra: 'new' UI for project/jobset/job/build
  • [8] JARRBLZD Bootstrapify the Hydra forms (except the project and jobset edit pages)
  • [9] OEPUOUNB Using twitter bootstrap for more consistent looks for Hydra
  • [10] QL55ECJ6 - adapted ui for hydra, more in line with nixos.org website
  • [11] ELABMHJI * hydra: layout changes
  • [12] 3PNG7NIB Remove trailing whitespace
  • [13] Z6MDQIGO * A quick (non-Web 2.0) interface to manually add builds to a release.
  • [*] J5UVLXOK * Start of a basic Catalyst web interface.
  • [*] WW6BFSNF Move the "Cancel build" button to the menu
  • [*] 7ZQAHJQM Fix indentation

Change contents

  • edit in src/root/build.tt at line 195
    [4.843][4.4139:4633](),[4.4633][4.9947:9948](),[4.9947][4.9947:9948]()
    [% IF c.user_exists && available %]
    <br/>
    <form class="form-horizontal" action="[% c.uri_for('/build' build.id 'add-to-release') %]" method="post">
    <div class="control-group">
    <label class="control-label">Add to release</label>
    <div class="controls">
    <input type="text" class="input" name="name"></input>
    <button type="submit" class="btn btn-success">Apply</button>
    </div>
    </div>
    </form>
    [% END %]
  • edit in src/root/build.tt at line 549
    [2.472]
    [15.8444]
    [% IF c.user_exists && available && project.releases %]
    <div id="add-to-release" class="modal hide fade" tabindex="-1" role="dialog" aria-hidden="true">
    <form class="form-horizontal" action="[% c.uri_for('/build' build.id 'add-to-release') %]" method="post">
    <div class="modal-body">
    <div class="control-group">
    <label class="control-label">Add to release</label>
    <div class="controls">
    <select class="span2" name="name">
    [% FOREACH r IN project.releases %]
    <option>[% HTML.escape(r.name) %]</option>
    [% END %]
    </select>
    </div>
    </div>
    </div>
    <div class="modal-footer">
    <button type="submit" class="btn btn-primary">Add</button>
    <button class="btn" data-dismiss="modal" aria-hidden="true">Cancel</button>
    </div>
    </form>
    </div>
    [% END %]
  • replacement in src/root/topbar.tt at line 3
    [3.448][4.6753:6793](),[4.10536][4.6753:6793](),[4.6753][4.6753:6793]()
    <a href="[% uri %]">[% title %]</a>
    [3.448]
    [4.6811]
    <a href="[% uri %]" [% IF modal %]data-toggle="modal"[% END %]>[% title %]</a>
  • edit in src/root/topbar.tt at line 157
    [16.124]
    [17.2481]
    [% END %]
    [% IF available && project.releases %]
    [% INCLUDE menuItem
    uri = "#add-to-release"
    title = "Add to release"
    modal = 1 %]