~evanj/cms

21a6aabf4354a7c028352b0fc344805b8e92673d — Evan M Jones 5 months ago b48edae
Fix(space.html): Moving copy form.
2 files changed, 14 insertions(+), 12 deletions(-)

M TODO
M internal/s/tmpl/html/space.html
M TODO => TODO +2 -0
@@ 3,3 3,5 @@ Break cache when a Reference or ReferenceList item has been deleted.
Cache listicles.
Allow updating of space.
Cache: When an item is updated, any item that references it is not.
What happens when you delete a content's only reference list content? Then try
to copy space?

M internal/s/tmpl/html/space.html => internal/s/tmpl/html/space.html +12 -12
@@ 70,18 70,6 @@
      </details>

      <details>
        <summary>Delete {{ .Space.Name }} Space</summary>
        <form method=POST action='/space/delete' enctype='multipart/form-data'>
          <br>
          <fieldset>
            <input required type=hidden name=space value="{{ .Space.ID }}" />
            <input type=submit value=Delete />
          </fieldset>
          <br>
        </form>
      </details>

      <details>
        <summary>Copy Space</summary>
        <form method=POST action='/space/copy' enctype='multipart/form-data'>
          <input required type=hidden name=space value="{{ .Space.ID }}" />


@@ 103,6 91,18 @@
        </form>
      </details>

      <details>
        <summary>Delete {{ .Space.Name }} Space</summary>
        <form method=POST action='/space/delete' enctype='multipart/form-data'>
          <br>
          <fieldset>
            <input required type=hidden name=space value="{{ .Space.ID }}" />
            <input type=submit value=Delete />
          </fieldset>
          <br>
        </form>
      </details>

      <h2>Browse Content By Type</h2>
      {{ if .ContentTypes }}
        <ul>