create templates
This commit is contained in:
		
							
								
								
									
										57
									
								
								billard/templates/billard/locationdata_detail.html
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										57
									
								
								billard/templates/billard/locationdata_detail.html
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,57 @@
 | 
			
		||||
{% extends 'billard/base.html' %}
 | 
			
		||||
 | 
			
		||||
{% block title %}Location Data{% endblock %}
 | 
			
		||||
 | 
			
		||||
{% block content %}
 | 
			
		||||
    <h1>Locationdata: {{ locationdata.id }}</h1>
 | 
			
		||||
 | 
			
		||||
    {% if error_message %}<p><strong>{{ error_message }}</strong></p>{% endif %}
 | 
			
		||||
 | 
			
		||||
    <form action="{% url 'index' %}" method="post" class="form-horizontal">
 | 
			
		||||
        {% csrf_token %}
 | 
			
		||||
        <div class="form-group">
 | 
			
		||||
            <label for="location_id" class="col-sm-2 control-label">Location Id</label>
 | 
			
		||||
            <div class="col-sm-10">
 | 
			
		||||
                <input id="location_id" type="text" name="location_id" value="{{ locationdata.location_id }}"
 | 
			
		||||
                       placeholder="Locaton" class="form-control" disabled="disabled"/>
 | 
			
		||||
            </div>
 | 
			
		||||
            <div class="form-group">
 | 
			
		||||
                <label for="table_no" class="col-sm-2 control-label">Table Number</label>
 | 
			
		||||
                <div class="col-sm-10">
 | 
			
		||||
                    <input id="table_no" type="number" name="table_no" value="{{ locationdata.table_no }}"
 | 
			
		||||
                           placeholder="Table" class="form-control" min="1" max="8" disabled="disabled"/>
 | 
			
		||||
                </div>
 | 
			
		||||
                <div class="form-group">
 | 
			
		||||
                    <label for="tst" class="col-sm-2 control-label">Timestamp</label>
 | 
			
		||||
                    <div class="col-sm-10">
 | 
			
		||||
                        <input id="tst" type="datetime" name="tst" value="{{ locationdata.tst }}"
 | 
			
		||||
                               placeholder="Table" class="form-control" disabled="disabled"/>
 | 
			
		||||
                    </div>
 | 
			
		||||
                </div>
 | 
			
		||||
                <div class="form-group">
 | 
			
		||||
                    <label for="on_off" class="col-sm-2 control-label">On / Off</label>
 | 
			
		||||
                    <div class="col-sm-10">
 | 
			
		||||
                        <input id="on_off" type="checkbox" name="on_off" value="{{ locationdata.on_off }}"
 | 
			
		||||
                               placeholder="Table" class="form-control" disabled="disabled"/>
 | 
			
		||||
                    </div>
 | 
			
		||||
                </div>
 | 
			
		||||
                <div class="form-group">
 | 
			
		||||
                    <label for="processed" class="col-sm-2 control-label">Processed</label>
 | 
			
		||||
                    <div class="col-sm-10">
 | 
			
		||||
                        <input id="processed" type="checkbox" name="processed" value="{{ locationdata.processed }}"
 | 
			
		||||
                               placeholder="Table" class="form-control" disabled="disabled"/>
 | 
			
		||||
                    </div>
 | 
			
		||||
                </div>
 | 
			
		||||
                <div class="form-group">
 | 
			
		||||
                    <label for="error_msg" class="col-sm-2 control-label">Error Message</label>
 | 
			
		||||
                    <div class="col-sm-10">
 | 
			
		||||
                        <input id="error_msg" type="text" name="error_msg" value="{{ locationdata.error_msg }}"
 | 
			
		||||
                               placeholder="Table" class="form-control" disabled="disabled"/>
 | 
			
		||||
                    </div>
 | 
			
		||||
                </div>
 | 
			
		||||
                <button type="submit" class="btn btn-default">Abschicken</button>
 | 
			
		||||
                <a class="btn btn-default" href=".." role="button">Zurück</a>
 | 
			
		||||
    </form>
 | 
			
		||||
{% endblock %}
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
@@ -17,7 +17,7 @@
 | 
			
		||||
        </tr>
 | 
			
		||||
    {% for location_data in object_list %}
 | 
			
		||||
        <tr>
 | 
			
		||||
            <td>{{ location_data.id }}</td>
 | 
			
		||||
            <td><a href="{% url 'detail' location_data.id %}">{{ location_data.id }}</a></td>
 | 
			
		||||
            <td>{{ location_data.location_id }}</td>
 | 
			
		||||
            <td>{{ location_data.table_no }}</td>
 | 
			
		||||
            <td>{{ location_data.tst }}</td>
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user