You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

94 lines
3.8 KiB

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

<view class="container">
<form class="course-setting" bindsubmit="create_course">
<view class="form-item form-wrap">
<text class="hint form-item">课程名称</text>
<input class="form-item"
placeholder="示例:大学数学"
bindinput="updateCourseListName"
value="{{form_data.course_list_name}}"
name="course_list_name"
></input>
</view>
<view class="form-item form-wrap">
<text class="hint form-item">课堂名称</text>
<input class="form-item"
placeholder="示例大学数学2019春季A1班"
value="{{form_data.name}}"
name="name">
</input>
</view>
<view class="form-item form-wrap">
<text class="hint form-item">课堂所属单位</text>
<view>
<input class="form-item"
name="school"
bindinput="updateSchool"
bindblur="leaveSchool"
bindfocus="focusSchool"
hold-keyboard="1"
cursor-spacing="240"
value="{{form_data.school}}">
</input>
</view>
<scroll-view class="selector" scroll-y="true" hidden="{{hideScroll}}">
<block wx:for="{{bindSource}}">
<view id="{{item}}" bindtap="itemtap" class="selector-item">
<text>{{item}}</text>
</view>
</block>
</scroll-view>
</view>
<view class="form-item form-wrap">
<text class="hint form-item">总学时</text>
<input class="form-item"
name="class_period"
value="{{form_data.class_period}}"
type="number">
</input>
</view>
<view class="form-item form-wrap">
<text class="hint form-item">学分</text>
<input class="form-item"
name="credit"
value="{{form_data.credit}}"
type="digit">
</input>
</view>
<view class="form-item form-wrap">
<text class="hint form-item">结束时间</text>
<picker class="form-item"
name="end_date"
mode="date"
bindchange="updateEndDate"
value="{{form_data.end_date}}"
start="{{current_date}}">{{form_data.end_date||"请选择结束时间"}}
</picker>
</view>
<view class="form-item form-wrap">
<text class="hint form-item">课堂模块</text>
<checkbox-group name="course_module_types" class="form-item">
<checkbox value="announcement" checked="{{form_data.announcement}}">公告栏</checkbox>
<checkbox value="shixun_homework" checked="{{form_data.shixun_homework}}">实训作业</checkbox>
<checkbox value="common_homework" checked="{{form_data.common_homework}}">普通作业</checkbox>
<checkbox value="group_homework" checked="{{form_data.group_homework}}">分组作业</checkbox>
<checkbox value="graduation" checked="{{form_data.graduation}}">毕业设计</checkbox>
<checkbox value="exercise" checked="{{form_data.exercise}}">试卷</checkbox>
<checkbox value="pool" checked="{{form_data.pool}}">问卷</checkbox>
<checkbox value="attachment" checked="{{form_data.attachment}}">资源</checkbox>
<checkbox value="board" checked="{{form_data.board}}">讨论</checkbox>
<checkbox value="course_group" checked="{{form_data.course_group}}">分班</checkbox>
<checkbox value="statistics" checked="{{form_data.statistics}}">统计</checkbox>
</checkbox-group>
</view>
<view class="form-item form-wrap">
<text class="hint form-item">加入课堂条件</text>
<checkbox name="authentication">已实名认证</checkbox>
<checkbox name="professional_certification">已职业认证</checkbox>
</view>
<view class="form-item form-wrap">
<text class="hint form-item">公开设置</text>
<checkbox name="is_public">公开课堂</checkbox>
</view>
<button class="submit" type="main" form-type="submit">提交</button>
</form>
</view>