0
사용자가 선택한 시간에 따라 사용자 목록에서 특정 사용자의 응용 프로그램에있는 버튼을 활성화 및 비활성화하는 시스템을 만들어야합니다 "감독"역할.선택 입력에 따라 오랫동안 버튼을 활성화/비활성화합니다.
<template name="dashboard">
...
<button type="submit" class="btn btn-primary" id="yes">Yes</button>
...
</template>
내 사용자의 모음입니다 :
사용자가 버튼을 참조<template name="showSend">
<h4>Send Notification to: {{data.profile.lastName}} {{data.profile.firstName}}</h4>
<form>
<select name="notification">
<option value="1day">1 day</option>
<option value="3day">3 days</option>
<option value="5day">5 days</option>
<option value="week">1 week</option>
</select>
<br><br>
<label><input type="submit" name={{data.profile.lastName}} id="sendQuest" ><span><i class="fa fa-bell" aria-hidden="true"></i> Send</span></label>
</form>
</template>
한편 :
감독은 기본 사용자에 대한 템플릿을 사용하는 방법을 며칠마다를 선택할 수 있습니다
Schemas.UserProfile = new SimpleSchema(
firstName:
type: String
optional: true
lastName:
type: String
optional: true
personNumber:
type: String
optional: true
birthday:
type: Date
optional: true
location:
type: String
optional: true
country:
type: String
label: 'Nationality'
allowedValues: Utils.countryList
optional: true
clinic:
type: String
label: 'Clinic'
allowedValues: Utils.clinicList
optional: true
)
Schemas.User = new SimpleSchema(
username:
type: String
regEx: /^[a-z0-9A-Z_]{3,15}$/
optional: true
emails:
type: [Object]
optional: true
"emails.$.address":
type: String
regEx: SimpleSchema.RegEx.Email
"emails.$.verified":
type: Boolean
createdAt:
type: Date
profile:
type: Schemas.UserProfile
optional: true
services:
type: Object
optional: true
blackbox: true
roles:
type: [String]
blackbox: true
optional: true
)
무엇을 시도 했습니까? 실제로 HTML과 스키마를 제공해 주셨습니다. 실제로 문제를 해결하려는 시도는 없습니다. – chazsolo
이런 종류의 정보를 전달하는 법을 모르므로 시도하지 않았습니다. 나는 관련된 사용자가 액세스 할 수있는 컬렉션을 사용하여 정보를 전달할 수 있다고 생각했습니다. 따라서 디렉터가 컬렉션의 필드를 true로 설정 한 다음 사용자가이 사실을 읽고 카운트 다운을 시작하지만 이것을 읽는 방법 실시간으로 가치? 그리고 카운트 다운을하는 법을 모르겠습니다 ... – Jenny
http://idownvotedbecau.se/noattempt/ - 저는 실제로 당신을 하향 투표하지 않고 있습니다. 그냥 시도가 허용되지 않는 이유를 알려주는 것입니다. –