0
ユーザーが選択した時間に応じて、特定のユーザーのアプリケーション内のボタンを有効または無効にするシステムを作成する必要があります「ディレクター」の役割で一方選択入力に応じてボタンを長時間有効/無効にする
<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>
ユーザーがボタンを参照してください:
<template name="dashboard">
...
<button type="submit" class="btn btn-primary" id="yes">Yes</button>
...
</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/ - 私は実際にあなたをdownvotingしていない。あなたがSOに許可されていない理由を教えてください –