~edwargix/git.sr.ht

a4af34265eed4c828bc67b27ae0db9bda500196c — Drew DeVault 6 years ago 740a5c0
Update validation support
M gitsrht/templates/create.html => gitsrht/templates/create.html +4 -4
@@ 5,7 5,7 @@
    <section class="col-md-6">
      <h3 id="create">Create new repository</h3>
      <form method="POST" action="/create">
        <div class="form-group {{valid.cls("name")}}">
        <div class="form-group">
          <label for="name">Name</label>
          <input
            {% if another %}


@@ 14,17 14,17 @@
            type="text"
            name="name"
            id="name"
            class="form-control"
            class="form-control {{valid.cls("name")}}"
            value="{{ repo_name or "" }}" />
          {{valid.summary("name")}}
        </div>
        <div class="form-group {{valid.cls("description")}}">
        <div class="form-group">
          <label for="description">Description</label>
          <input
            type="text"
            name="description"
            id="description"
            class="form-control"
            class="form-control {{valid.cls("description")}}"
            value="{{ repo_description or "" }}" />
          {{valid.summary("description")}}
        </div>

M gitsrht/templates/settings_access.html => gitsrht/templates/settings_access.html +2 -2
@@ 39,11 39,11 @@
    <h4>Grant Access</h4>
    {% endif %}
    <form method="POST">
      <div class="form-group {{valid.cls("user")}}">
      <div class="form-group">
        <label for="user">User</label>
        <input
          type="text"
          class="form-control"
          class="form-control {{valid.cls("user")}}"
          id="user"
          name="user"
          placeholder="~{{ current_user.username }}"

M gitsrht/templates/settings_rename.html => gitsrht/templates/settings_rename.html +2 -2
@@ 4,13 4,13 @@
  <div class="col-md-6">
    <h3>Rename Repository</h3>
    <form method="POST">
      <div class="form-group {{valid.cls('name')}}">
      <div class="form-group">
        <label for="name" style="display: block">
          New repository name:
        </label>
        <input
          type="text"
          class="form-control"
          class="form-control {{valid.cls('name')}}"
          id="name"
          name="name"
          value="{{name or repo.name}}" />