{% extends "base.html" %}

{% block main %}
<div class="page-grid">
  <div class="page-grid__toolbar">
    <div class="page-grid__toolbar-utilities">
      <a
        class="button button--secondary"
        href="{{ navigator.portal_page()
          .workspace_id(*portal.workspace_id)
          .rel_oid(*portal.class_oid)
          .portal_id(*portal.id)
          .build()?
          .get_path() }}"
        role="button"
      >
        Back
      </a>
    </div>
    {% include "toolbar_user.html" %}
  </div>
  <div class="page-grid__sidebar">
    <div style="padding: 1rem;">
      {{ workspace_nav | safe }}
    </div>
  </div>
  <main class="page-grid__main padded padded--lg">
    <form method="post" action="update-name">
      <section>
        <h1>Portal Name</h1>
        <input
          type="text"
          autocomplete="off"
          class="form__input"
          data-1p-ignore
          data-bwignore="true"
          data-lpignore="true"
          data-protonpass-ignore="true"
          name="name"
          value="{{ portal.name }}"
        >
        <div class="form__buttons">
          <button class="button button--primary" type="submit">Save</button>
        </div>
      </section>
    </form>
  </main>
</div>
{% endblock %}
