61 lines
3.4 KiB
HTML
61 lines
3.4 KiB
HTML
{% extends 'base.html' %}
|
|
|
|
{% block content %}
|
|
<div class="container mt-4">
|
|
<div class="row">
|
|
<div class="col-md-8 offset-md-2">
|
|
<div class="card">
|
|
<div class="card-header bg-primary text-white">
|
|
<h3 class="mb-0">Create New Product</h3>
|
|
</div>
|
|
<div class="card-body">
|
|
<form method="POST" action="{{ url_for('admin.create_product') }}">
|
|
<div class="mb-3">
|
|
<label for="title" class="form-label">Product Title</label>
|
|
<input type="text" class="form-control" id="title" name="title" required>
|
|
<div class="form-text">Enter a descriptive name for your product or service.</div>
|
|
</div>
|
|
|
|
<div class="mb-3">
|
|
<label for="thumbnail" class="form-label">Thumbnail URL</label>
|
|
<input type="url" class="form-control" id="thumbnail" name="thumbnail">
|
|
<div class="form-text">Enter a URL for the product image (optional).</div>
|
|
</div>
|
|
|
|
<div class="mb-3">
|
|
<label for="description" class="form-label">Description</label>
|
|
<textarea class="form-control" id="description" name="description" rows="3"></textarea>
|
|
<div class="form-text">Briefly describe what this product or service is about.</div>
|
|
</div>
|
|
|
|
<div class="mb-3">
|
|
<label class="form-label">Initial Decision Tree Setup</label>
|
|
<div class="card bg-light">
|
|
<div class="card-body">
|
|
<div class="mb-3">
|
|
<label for="root_question" class="form-label">Root Question</label>
|
|
<input type="text" class="form-control" id="root_question" name="root_question"
|
|
value="How can we help you with this product?" required>
|
|
</div>
|
|
|
|
<div class="mb-3">
|
|
<label for="root_content" class="form-label">Root Content</label>
|
|
<textarea class="form-control" id="root_content" name="root_content" rows="2">Welcome to the decision tree for this product. Please answer the following questions to help us assist you.</textarea>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="form-text">You can edit the full decision tree after creating the product.</div>
|
|
</div>
|
|
|
|
<div class="d-grid gap-2 d-md-flex justify-content-md-end">
|
|
<a href="{{ url_for('admin.admin_dashboard') }}" class="btn btn-outline-secondary me-md-2">Cancel</a>
|
|
<button type="submit" class="btn btn-primary">Create Product</button>
|
|
</div>
|
|
</form>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
{% endblock %}
|