Newer
Older
gitbucket_jkp / src / main / twirl / settings / options.scala.html
@takezoe takezoe on 6 Jun 2013 3 KB Fix h3 style and others.
@(repository: service.RepositoryService.RepositoryInfo)(implicit context: app.Context)
@import context._
@import service.RepositoryService._
@html.main("Settings"){
  @html.header("settings", repository)
  @menu("options", repository){
    <form id="form" method="post" action="@path/@repository.owner/@repository.name/settings/options" validate="true">
      <div class="box">
        <div class="box-header">Settings</div>
        <div class="box-content">
          <fieldset>
            <label for="description"><strong>Description</strong></label>
            <input type="text" name="description" id="description" style="width: 600px;" value="@repository.repository.description"/>
          </fieldset>
          <hr>
          <fieldset>
            <label for="defaultBranch"><strong>Default Branch</strong></label>
            <select name="defaultBranch" id="defaultBranch">
              @repository.branchList.map { branch =>
                <option value="@branch"@if(branch==repository.repository.defaultBranch){ selected}>@branch</option>
              }
            </select>
          </fieldset>
          <hr>
          <fieldset>
            <label><strong>Repository Type</strong></label>
            <label>
              <input type="radio" name="repositoryType" value="@Public"@if(repository.repository.repositoryType==Public){ checked}>
              <strong>Public</strong> - All users and guests can read this repository.
            </label>
            <label>
              <input type="radio" name="repositoryType" value="@Private"@if(repository.repository.repositoryType==Private){ checked}>
              <strong>Private</strong> - Only collaborators can read this repository.
            </label>
          </fieldset>
        </div>
      </div>
      @*
      <div class="box">
        <div class="box-header">Features</div>
        <div class="box-content">
          <dl>
            <dt>
              <label class="checkbox">
                <input type="checkbox" name="wiki" id="wiki"/> <strong>Wiki</strong>
              </label>
            </dt>
            <dd>
              Adds lightweight Wiki system to this repository.
              This is the simplest way to provide documentation or examples.
              Only collaborators can edit Wiki pages.
            </dd>
          </dl>
          <hr>
          <dl>
            <dt>
              <label class="checkbox">
                <input type="checkbox" name="issue" id="issue"/> <strong>Issue</strong>
              </label>
            </dt>
            <dd>
              Adds lightweight issue tracking integrated with this repository.
              All users who have signed in and can access this repository can register an issue.
            </dd>
          </dl>
        </div>
      </div>
      *@
      <fieldset>
        <input type="submit" class="btn btn-primary" value="Apply changes"/>
        <!--
        <input type="submit" class="btn btn-danger" value="Delete this repository"/>
        -->
      </fieldset>
    </form>
  }
}