<h1>Import events in iCalendar format</h1>

<form method="POST">
  {{ csrf() }}
  <input type="text" name="url" size="70" placeholder="http://">
  <input type="submit" value="import">
</form>

<div>
  {% if error %}
    {{ error }}
  {% else %}
    Successfully imported {{ events|length }} event(s) from {{ source }}
  {% endif %}
</div>

<h1>Import events in iCalendar format</h1>

<form method="POST">
  {{ csrf() }}
  <input type="text" name="url" size="70" placeholder="http://">
  <input type="submit" value="import">
</form>

<div>
  {% if error %}
    {{ error }}
  {% elif events|length > 0 %}
    Successfully imported {{ events|length }} event(s) from {{ source }}
  {% endif %}
</div>

Hide success message when no events were imported
Hide success message when no events were imported
