summaryrefslogtreecommitdiffstats
path: root/templates/logbookform.html
blob: cc338b3404ca55fed8f633d74bfd7d1aa886232c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
{% extends "base.html" %}

{% block title %}New Logbook Entry  form{% endblock %}

{% block content %}

<h2>New Logbook Entry in {{year}}</h2>

    {% if save_bad %}
    <p style="font-family: monospace; font-weight: bold; color: red; font-size: 130%; text-align: center">

    Cannot save to '{{save_bad}}' as a file of that name already exists here.
    </p>
    {% endif %}
    <style>
    input, textarea {font-family: monospace; font-weight: bold; text-align:center; font-size: 100%; padding: 0.5em;  }
    textarea {text-align:left }
    </style>  
    <div style = "max-width:100%; margin-left:15%; font-family: monospace; font-weight: bold; font-size: 150%; text-align: right; " >
    
    <form method ='post' >
       {% csrf_token %}              
    <br />                 
       
          <label for="date">Date of the activity</label>
           <input {% if not user.username %} disabled{% endif %} 
           label = "Date" name = "date" size="12"
           title="Date of the activity, a single day,  in ISO format: 2020-08-17"
           placeholder="{% if date %}{{date}}{% else %}2023-08-01{% endif %}" " required /> 
    <br /><br />       
           <label for="author">Your name (author) <a href="/aliases/{{year}}">[valid authors]</a></label>
           <input {% if not user.username %} disabled{% endif %} 
           label = "author" name = "author" size="20"
           title="The person writing the logbook entry"
           placeholder="{{author}}"  required /> 
    <br /><br />        
           <label for="others">Other names (comma separated) <a href="/aliases/{{year}}">[valid aliases]</a></label>
           <input {% if not user.username %} disabled{% endif %} 
           label = "others" name = "others" size="20"
           title="Everyone else involved"
           placeholder="Phil T, Chas, Planc"  /> 
    <br /><br />         
           <label for="place">Place: cave name, or 'plateau', 'topcamp' etc.</label>
           <input {% if not user.username %} disabled{% endif %} 
           label = "Place" name = "place" size="15"
           title="Place: cave name, or 'plateau', 'topcamp'  "
           placeholder="basecamp"   required /> 
    <br /><br />        
           <label for="title">Title</label>
           <input {% if not user.username %} disabled{% endif %} 
           label = "Title" name = "title" size="30"
           title="What we did on our holidays"
           placeholder="What we did on our holidays"  required /> 
    <br /><br /> 
           <label for="title"></label>
           <textarea {% if not user.username %} disabled{% endif %} 
           rows="5" cols="60"
           label = "" name = "text" 
           title="We had a lot of fun..."
           placeholder="We had a lot of fun..."  required />We had a lot of fun...
           </textarea>

            <br><br><br>
       <button  class="fancybutton2"  style="padding: 0.5em 25px; margin-left: 110px" type = "submit" value = "save" >
          Save logbook entry
       </button>
    </form>

    <br /><br /><br />
                 Full logbook for this year: <a href="/years/{{year}}/logbook.html"><em>Logbook {{year}}</em></a>
 
</div>

<br />

<hr />


{% endblock %}