aboutsummaryrefslogtreecommitdiff
path: root/app/views/contents/courseware/create_project.php
blob: 78f3173a6a20ac38cdf3c7881bf6b9d8fd704631 (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
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
<form class="default" action="<?= $controller->link_for('contents/courseware/create_project') ?>"
      method="post" enctype="multipart/form-data">
    <?= CSRFProtection::tokenTag() ?>

    <fieldset>
        <label>
            <span>
                <?= _('Titel des Lernmaterials') ?>
            </span>
            <input required type="text" name="title">
        </label>

        <label>
            <span>
                <?= _('Zusammenfassung') ?>
            </span>
            <textarea name="description"></textarea>
        </label>

        <label>
            <?= _('Art des Lernmaterials') ?>
            <select name="project_type">
                <option value="content">
                    <?= _('Inhalt') ?>
                </option>
                <option value="template">
                    <?= _('Vorlage') ?>
                </option>
                <option value="oer">
                    <?= _('OER-Material') ?>
                </option>
                <option value="portfolio">
                    <?= _('ePortfolio') ?>
                </option>
                <option value="draft">
                    <?= _('Entwurf') ?>
                </option>
                <option value="other">
                    <?= _('Sonstiges') ?>
                </option>
            </select>
        </label>

        <label>
            <?= _('Lizenztyp') ?>
            <select name="license_type">
                <? foreach (License::findBySQL("1 ORDER BY name ASC") as $l) : ?>
                <option value="<?= htmlReady($l->id) ?>" <?= $l->id === License::findDefault()->id ? " selected" : "" ?>>
                    <?= htmlReady($l['name']) ?>
                </option>
                <? endforeach ?>
            </select>
        </label>

        <label>
            <span>
                <?= _('Geschätzter zeitlicher Aufwand') ?>
            </span>
            <input type="text" name="required_time">
        </label>

        <label>
            <span>
                <?= _('Niveau') ?>
            </span>
            <select name="difficulty">
                <? for ($i = 1; $i<=12; $i++): ?>
                    <option value="<?= $i?>"><?= $i?></option>
                <? endfor; ?>
            </select>
        </label>

        <label>
            <span>
                <?= _('Farbe') ?>
            </span>
            <select name="color">
                <option value="royal-purple">
                    <?= _('Königliches Purpur') ?>
                </option>
                <option value="iguana-green">
                    <?= _('Leguangrün') ?>
                </option>
                <option value="charcoal">
                    <?= _('Holzkohle') ?>
                </option>
                <option value="queen-blue">
                    <?= _('Königin blau') ?>
                </option>
                <option value="verdigris">
                    <?= _('Helles Seegrün') ?>
                </option>
                <option value="mulberry">
                    <?= _('Maulbeere') ?>
                </option>
                <option value="pumpkin">
                    <?= _('Kürbis') ?>
                </option>
                <option value="apple-green">
                    <?= _('Apfelgrün') ?>
                </option>
                <option value="studip-blue">
                    <?= _('Blau') ?>
                </option>
                <option value="studip-gray">
                    <?= _('Grau') ?>
                </option>
                <option value="studip-green">
                    <?= _('Grün') ?>
                </option>
            </select>
        </label>

        <label class="file-upload enter-accessible" tabindex="0">
            <?= _('Vorschaubild hochladen') ?>
            <input id="previewfile" name="previewfile" type="file" accept="image/*">
        </label>

    </fieldset>

    <footer data-dialog-button>
        <?= Studip\Button::createAccept(_('Erstellen'), 'create_project', ['title' => _('Neues Lernmaterial erstellen')]) ?>
        <?= Studip\LinkButton::createCancel(_('Abbrechen'), $controller->url_for('contents/courseware'), ['title' => _('Zurück zur Übersicht')]) ?>
    </footer>
</form>